|
Should Purifier do a double run? May 26, 2010 01:16PM |
Registered: 2 years ago Posts: 3 |
With HTML Purifier set to remove empty and to remove spans without attributes,
<pre><![CDATA[
<p><span style="font-family: "> <p align="left">Installation and Testing of the Electrical & Instrumentation</p> <p align="left">Works</p> <p align="left">• Installation of Primary & Secondary Containment</p> </span></p> <p> </p> <p> </p>
]]></pre>
Produces the following purified output:
<pre><![CDATA[
<p> </p><p align="left">Installation and Testing of the Electrical & Instrumentation</p> <p align="left">Works</p> <p align="left">• Installation of Primary & Secondary Containment</p>
]]></pre>
The purified output is valid, of course, but it still contains an empty element.
If you run that through again, it's further purified, to remove the empty paragraph:
<pre><![CDATA[
<p align="left">Installation and Testing of the Electrical & Instrumentation</p> <p align="left">Works</p> <p align="left">• Installation of Primary & Secondary Containment</p>
]]></pre>
Should Purifier run on a loop, repeatedly purifying until no changes are made to the HTML string?
TRiG.
|
Re: Should Purifier do a double run? May 26, 2010 01:19PM |
Admin Registered: 6 years ago Posts: 2,638 |
|
Re: Should Purifier do a double run? May 26, 2010 01:32PM |
Registered: 2 years ago Posts: 3 |
|
Re: Should Purifier do a double run? May 26, 2010 01:39PM |
Admin Registered: 6 years ago Posts: 2,638 |