2007-06-28 23:01:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
if(!defined("PHORUM")) exit;
|
|
|
|
|
|
|
|
// default HTML Purifier configuration settings
|
2009-05-27 05:17:23 +00:00
|
|
|
$config->set('HTML.Allowed',
|
2007-06-29 02:17:17 +00:00
|
|
|
// alphabetically sorted
|
|
|
|
'a[href|title]
|
|
|
|
abbr[title]
|
|
|
|
acronym[title]
|
|
|
|
b
|
|
|
|
blockquote[cite]
|
|
|
|
br
|
|
|
|
caption
|
|
|
|
cite
|
|
|
|
code
|
|
|
|
dd
|
|
|
|
del
|
|
|
|
dfn
|
|
|
|
div
|
|
|
|
dl
|
|
|
|
dt
|
|
|
|
em
|
|
|
|
i
|
|
|
|
img[src|alt|title|class]
|
|
|
|
ins
|
|
|
|
kbd
|
|
|
|
li
|
|
|
|
ol
|
|
|
|
p
|
|
|
|
pre
|
|
|
|
s
|
|
|
|
strike
|
|
|
|
strong
|
|
|
|
sub
|
|
|
|
sup
|
|
|
|
table
|
|
|
|
tbody
|
|
|
|
td
|
|
|
|
tfoot
|
|
|
|
th
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
tt
|
|
|
|
u
|
|
|
|
ul
|
|
|
|
var');
|
2009-05-27 05:17:23 +00:00
|
|
|
$config->set('AutoFormat.AutoParagraph', true);
|
|
|
|
$config->set('AutoFormat.Linkify', true);
|
|
|
|
$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
|
|
|
|
$config->set('Core.AggressivelyFixLt', true);
|
|
|
|
$config->set('Core.Encoding', $GLOBALS['PHORUM']['DATA']['CHARSET']); // we'll change this eventually
|
2007-06-29 00:48:55 +00:00
|
|
|
if (strtolower($GLOBALS['PHORUM']['DATA']['CHARSET']) !== 'utf-8') {
|
2009-05-27 05:17:23 +00:00
|
|
|
$config->set('Core.EscapeNonASCIICharacters', true);
|
2007-06-29 00:48:55 +00:00
|
|
|
}
|
2007-06-28 23:01:27 +00:00
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|