Welcome! » Log In » Create A New Profile

Markup for unordered/ordered lists is modified

Posted by lp1051 
Markup for unordered/ordered lists is modified
January 30, 2018 09:30AM

Hi, my problem is that HTMLPurifier is altering input HTML.

Submitted HTML:

<ol>
    <li>one</li>
</ol>

Purified HTML:

<ol><li>one</li>
</ol>

Same behavior applies to <ul> tag. Tested with latest stable version 4.9.3

I'm not familiar with HTMLPurifier source code, and it's not really easy to find where this "bug" comes from, so I'd would really appreciate any help.

Thank you, Luk

Re: Markup for unordered/ordered lists is modified
February 15, 2018 03:03AM

It's trouble with libxml parser. If you switch to DirectLex that should help.

Sorry, you do not have permission to post/reply in this forum.