[Typo3-dev] t3lib_parsehtml removing processing instructions and declarations from html

Martin T. Kutschker Martin.no5pam.Kutschker at blackbox.n0spam.net
Thu Nov 25 20:07:19 CET 2004


Hi!

I'm talking about stuff like <?xml> and <!BLAH>. I want to get rid of
that stuff and didn't manage to do so.

Am I simply dumb or is the only option to get it converted into
"&lt;&amp;..." strings?

I hacked this into HTMLcleaner():

if ('?'==$firstChar)    {       // remove all processing instructions
    $newContent[$c++]='';
}

Could take some options or is it unnecessary anyway?

Masi





More information about the TYPO3-dev mailing list