HTMLPurifier's default behavior?
March 06, 2011 05:59AM

Hi,

How can find out what the default behavior of HTMLPurifier? ie, if I don't set any custom configurations, what tags, attributes are allowed? which DOCTYPE standard is used to purify the content (XHTML strict, XHTML Transitional, etc.).

I found an interesting page at http://htmlpurifier.org/live/smoketests/printDefinition.php. Does it contain the default "behaviors" that the purifier uses if I don't specify custom configs?

This is a great product, but I'm a newbie and just learning how things work.

thanks! Steve

Re: HTMLPurifier's default behavior?
March 06, 2011 07:58AM

That is, indeed, the default configuration. You can also edit the values to see what happens when you change various configuration options.

Re: HTMLPurifier's default behavior?
March 08, 2011 03:51AM

thanks for clarification Ambush Commander!

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with < and >.

Auto-paragraphing is enabled. Double newlines will be converted to paragraphs; for single newlines, use the pre tag.

Allowed tags: a, abbr, acronym, b, blockquote, caption, cite, code, dd, del, dfn, div, dl, dt, em, i, ins, kbd, li, ol, p, pre, s, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var.

For inputting literal code such as HTML and PHP for display, use CDATA tags to auto-escape your angled brackets, and pre to preserve newlines:

<pre><![CDATA[
Place code here
]]></pre>

Power users, you can hide this notice with:

.htmlpurifier-help {display:none;}

Message: