|
Rich1
Spaces neighboring image tags being eatenMay 24, 2012 12:59AM |
I have the following config:
$config->set('Core.Encoding', 'UTF-8');
$config->set('HTML.Doctype', 'HTML 4.01 Transitional');
$config->set('Cache.SerializerPath', "$ABSOLUTE_PATH/../offline/htmlpurifier");
$config->set('Filter.ExtractStyleBlocks.TidyImpl', false);
$config->set('Filter.ExtractStyleBlocks.Escaping', false);
$config->set('Filter.ExtractStyleBlocks', true);
$config->set('CSS.AllowImportant', true);
$config->set('CSS.AllowTricky', true);
$config->set('CSS.Trusted', true);
$config->set('Attr.EnableID', true);
$config->set('HTML.Trusted', true);
In the following input HTML, the spaces before or after an image tag are being eaten by something and I can't figure out what.
Input:
<img src="http://www.teamliquid.net/images/flags2/fi.png" width="18" height="12" alt="fi"> <img src="http://www.teamliquid.net/mirror/smilies/protoss-small.gif" border="0" alt=""> <b>elfi</b>
Output:
<img src="http://www.teamliquid.net/images/flags2/fi.png" width="18" height="12" alt="fi"><img src="http://www.teamliquid.net/mirror/smilies/protoss-small.gif" border="0" alt=""><b>elfi</b>
Any idea what setting is responsible for this? Thanks.
|
Re: Spaces neighboring image tags being eaten May 24, 2012 01:00PM |
Admin Registered: 6 years ago Posts: 2,632 |
Try setting %Core.LexerImpl to DirectLex.
|
Rich1
Re: Spaces neighboring image tags being eatenMay 25, 2012 11:18PM |
|
Re: Spaces neighboring image tags being eaten May 25, 2012 11:51PM |
Admin Registered: 6 years ago Posts: 2,632 |