Welcome! » Log In » Create A New Profile

Notice this?

Posted by Liquidice 
Liquidice
Notice this?
January 14, 2008 02:38PM

Just curious if this has been noticed, or if it's a bug.

htmlpurifier turns <a>abc<a/> into: <a>abc</a><a>/&gt; into</a>

Re: Notice this?
January 14, 2008 02:42PM

That's curious behavior on the part of PHP's DOM extension (i.e. it's not something we can fix). If you'd like more proper behavior, set %Core.LexerImpl to DirectLex.

Liquidice
Re: Notice this?
January 14, 2008 03:31PM

Yeah, switching to directlex fixes that. Is directlex implemented with php?

Re: Notice this?
January 14, 2008 03:32PM

Yep. So it's a little slower, but I can actually fix bugs in it. :-)

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: