Guest User

Untitled

a guest
Feb 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. require('config.php');
  4. $CFG->enablehtmlpurifier = 1;
  5.  
  6. $PAGE->set_context(get_system_context());
  7. $PAGE->set_url('/test.php');
  8.  
  9. echo $OUTPUT->header();
  10.  
  11. echo purify_html('A');
  12.  
  13. purge_all_caches();
  14.  
  15. echo purify_html('B');
  16.  
  17. echo $OUTPUT->footer();
Add Comment
Please, Sign In to add comment