HTMLPurifier 4.4.0
|
00001 <?php 00002 00003 if(!defined("PHORUM")) exit; 00004 00005 // default HTML Purifier configuration settings 00006 $config->set('HTML.Allowed', 00007 // alphabetically sorted 00008 'a[href|title] 00009 abbr[title] 00010 acronym[title] 00011 b 00012 blockquote[cite] 00013 br 00014 caption 00015 cite 00016 code 00017 dd 00018 del 00019 dfn 00020 div 00021 dl 00022 dt 00023 em 00024 i 00025 img[src|alt|title|class] 00026 ins 00027 kbd 00028 li 00029 ol 00030 p 00031 pre 00032 s 00033 strike 00034 strong 00035 sub 00036 sup 00037 table 00038 tbody 00039 td 00040 tfoot 00041 th 00042 thead 00043 tr 00044 tt 00045 u 00046 ul 00047 var'); 00048 $config->set('AutoFormat.AutoParagraph', true); 00049 $config->set('AutoFormat.Linkify', true); 00050 $config->set('HTML.Doctype', 'XHTML 1.0 Transitional'); 00051 $config->set('Core.AggressivelyFixLt', true); 00052 $config->set('Core.Encoding', $GLOBALS['PHORUM']['DATA']['CHARSET']); // we'll change this eventually 00053 if (strtolower($GLOBALS['PHORUM']['DATA']['CHARSET']) !== 'utf-8') { 00054 $config->set('Core.EscapeNonASCIICharacters', true); 00055 } 00056 00057 // vim: et sw=4 sts=4