[Typo3-dev] Crop on HTML contents: new htmlcrop extension
Martin Kutschker
martin.t.kutschker at n0spam.blackbox.net
Tue Mar 15 10:53:46 CET 2005
"Davide Principi" <d.principi.nospamme. at provincia.ps.it> schrieb im
Newsbeitrag
news:mailman.1.1110878973.28646.typo3-dev at lists.netfielders.de...
>I published a new version of the previous user class. I registered it as
>"htmlcrop" extension. Even if it's not a true extension, I think in this
>way it should be easier for you to check it out and test.
>
> It's very simple, and now I think it _doesn't work with HTML comments_. I
> have to test another regexp pattern to match comments, also...
I wouldn't use a regexp on HTML. Not even on well-formed, valid XHTML. Too
much recursion and stuff:
<b><!-- haha </b> --></b>
Might work when you start with removing the comments first, but I'd go for a
parser anyway.
Masi
More information about the TYPO3-dev
mailing list