Line 82 of HTMLPurifier.php is * @param $config Optional HTMLPurifier_Config object for all instances of And should be: * @param $config HTMLPurifier_Config object for all instances ofby laurin1 - Internals
Line 136 of Config.php is * @return Default HTMLPurifier_Config object. And should be: * @return HTMLPurifier_Config object.by laurin1 - Internals
Well, it appears that if I specify my own list of elements and include the font tag, it works (doesn't strip it out.) However, it still strips the line breaks. I just wrote code that looks for PRE and replaces the line breaks in PRE with br.by laurin1 - Support
Ok, this appears to be the same issue as http://htmlpurifier.org/phorum/read.php?3,6437. However, the point is that this HTML is not generated by myself, as is common for us. We copy and paste content from a variety of sources and we don't care if their HTML is correct, we just want it to look the same.by laurin1 - Support
#1 When PRE is used, the content is stripped. This: <pre> <code><span class="sql1-reservedword"><strong><font color="#0000ff">SELECT </font></strong></span></code></pre> Becomes this: <pre> <code><span class="sql1-reservedword"><strong></strong></span></code></pre> But if I deleby laurin1 - Support
Oh, I see it's using "blank", not "_blank". Why is that? How do I make it use "_blank"?by laurin1 - Support
How do I turn this off? Even more, how is this even happening? I can't find anything in the HTML that HTMPurifier generates that would cause this.by laurin1 - Support
Yeah, we don't know how to deal with backslash Windows links. Actually, it won't work with ANY file: links. This doesn't work either (same result): <a href="file://server05/Pride/IT/IT Management/Maintenance Tasks.xls" target="_blank">//SERVER05/Pride/IT/IT Management/Maintenance Tasks.xls </a>by laurin1 - Support
We use this on a local intranet and it's striping the href property from this: <a href="\\SERVER05\Pride\IT\IT Management\Maintenance Tasks.xls">\\SERVER05\Pride\IT\IT Management\Maintenance Tasks.xls </a></div> and producing this: <a>\\SERVER05\Pride\IT\IT Management\Maintenance Tasks.xls </a></div>by laurin1 - Support
Oh, nevermind I figured it out.by laurin1 - Support
Most of the tme we run the purifer for the first time on a machine or change the config, we get this error message. It especially happens when PHPUnit is running the script. unlink(C:\PHP\PEAR/HTMLPurifier/DefinitionCache/Serializer/HTML/CVS): Permission denied UPDATE: Just deployed the code and it happened once in Production, but seems to be fine now. So, like it said, once each time somethingby laurin1 - Support
Yea, I get that, but you are talking about a massive project to convert and test a project that is upwards of 300,000 lines of code. Ain't gonna happen anytime soon. So, I did this and it works: 73 /** 74 * @static 75 * @param string $sHTML 76 * @return string 77 */ 78 private static function getHTMLReplacingNBSPWithEntityNumber($sHTML){ 79 80 returnby laurin1 - Support
I've read numerous posts on different sites about this problem, but I am at a loss on what to do about it. I found one method to fix it, that is run all of my code through html_decode first. That works, but as you can guess, breaks other things.by laurin1 - Support
For now, I've fixed it like this: /** * @static * @param string $sHTML * @return string */ public static function getHTMLWithFixForUnmatchedDivTags($sHTML){ $iOpeningDivCount = preg_match_all('/<div/', $sHTML, $aMatches); $iClosingDivCount = preg_match_all('/<\/div>/', $sHTML, $aMatches); $sExtraOpeningDivs = null; if($iClosingDivCount > $iOpeningDivCount) foby laurin1 - Support
Tried to post a reply, but can't: http://htmlpurifier.org/phorum/read.php?3,6257by laurin1 - Support
Just got this: "A word you have used in your post has been banned from use. Please use a different word or contact the forum administrators." What word? It doesn't say.by laurin1 - Support
Is there a bug reporting tool or a place to vote for bugs or give feedback?by laurin1 - Support
Why does it truncate everything after</div>? Test1</div> <table> <tr> <td> Test2 </td> </tr> </table> Any other tag unbalanced does not do this, just div. Why is that? How can I make it not do this?by laurin1 - Support