config.default.php 809 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. if(!defined("PHORUM")) exit;
  3. // default HTML Purifier configuration settings
  4. $config->set('HTML.Allowed',
  5. // alphabetically sorted
  6. 'a[href|title]
  7. abbr[title]
  8. acronym[title]
  9. b
  10. blockquote[cite]
  11. br
  12. caption
  13. cite
  14. code
  15. dd
  16. del
  17. dfn
  18. div
  19. dl
  20. dt
  21. em
  22. i
  23. img[src|alt|title|class]
  24. ins
  25. kbd
  26. li
  27. ol
  28. p
  29. pre
  30. s
  31. strike
  32. strong
  33. sub
  34. sup
  35. table
  36. tbody
  37. td
  38. tfoot
  39. th
  40. thead
  41. tr
  42. tt
  43. u
  44. ul
  45. var');
  46. $config->set('AutoFormat.AutoParagraph', true);
  47. $config->set('AutoFormat.Linkify', true);
  48. $config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
  49. $config->set('Core.AggressivelyFixLt', true);
  50. $config->set('Core.Encoding', $GLOBALS['PHORUM']['DATA']['CHARSET']); // we'll change this eventually
  51. if (strtolower($GLOBALS['PHORUM']['DATA']['CHARSET']) !== 'utf-8') {
  52. $config->set('Core.EscapeNonASCIICharacters', true);
  53. }
  54. // vim: et sw=4 sts=4