Welcome! » Log In » Create A New Profile

HTML Purifier removes special chars! iso-8859-1

Posted by J. Tangelder 
J. Tangelder
HTML Purifier removes special chars! iso-8859-1
December 07, 2007 05:24AM

Hi,

I have a problem with HTML purifier, a string with these chars;

!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

Re: HTML Purifier removes special chars! iso-8859-1
December 07, 2007 07:15AM

You need to also set %Core.Encoding (indeed, if those characters are the only ones you need, that should be enough). Otherwise, HTML Purifier doesn't know what encoding your text is!

Author:
Your Email:

Subject:

HTML input is enabled. Make sure you escape all HTML and angled brackets with &lt; and &gt;.

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: