mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 13:47:24 +02:00
[2.1.0] Phorum mod implemented for HTML Purifier. Some other code adjustments were made, they need to be cleaned up.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1267 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
24
plugins/phorum/config.default.php
Normal file
24
plugins/phorum/config.default.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
if(!defined("PHORUM")) exit;
|
||||
|
||||
// default HTML Purifier configuration settings
|
||||
$config->set('HTML', 'Allowed',
|
||||
// definitely needed
|
||||
'a[href|title],blockquote[cite],b,pre,i,p,'.
|
||||
// common semantic markup
|
||||
'del,ins,strong,em,'.
|
||||
// commmon presentational markup
|
||||
's,strike,sub,sup,u,br,tt,div[class],'. // div because bbcode [quote] uses it
|
||||
// uncommon semantic markup
|
||||
'abbr[title],acronym[title],caption,code,dfn,cite,kbd,var,'.
|
||||
// lists
|
||||
'dd,dl,dt,ul,li,ol,'.
|
||||
// tables
|
||||
'table,tr,tbody,thead,tfoot,td,th');
|
||||
$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', 'iso-8859-1'); // we'll change this eventually
|
||||
|
Reference in New Issue
Block a user