Welcome! » Log In » Create A New Profile

HTML Purifier turns

Posted by goldenmidas 
HTML Purifier turns
January 12, 2008 10:20AM

Hi!

I've got a problem (with encodings of HTML Purifier)...

I'm using TinyMCE text editor... I live in Finland, so I should use

Re: HTML Purifier turns
January 12, 2008 05:22PM

Your configuration is correct, however, HTML Purifier doesn't know about it, since you never pass it to HTMLPurifier! Use this:

$purifier = new HTMLPurifier($config);
Re: HTML Purifier turns � to ä
January 14, 2008 06:01AM

Hey thanks, sorry, I was noobish :D Anyway I changed my whole site to use UTF-8 instead of ISO-8859-1... Everything working well now!

Thanks for the one who made this great piece of software, very handy, it does what it promises! :)

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: