[Typo3-dev] locallang.xml +HTML Tag

Christopher bedlamhotel at gmail.com
Tue Jul 26 00:00:07 CEST 2005


Hi,

On 25/07/05, Chris Wittmann [SwiftLizard] <chris at swift-lizard.com> wrote:
> Hi Christopher,
> 
> 
> > "<", ">", "--" and "&" are reserved in xml, so by inserting html that
> > includes '<' or '>', you're messing up the xml file. You need to keep
> > the parser from working on the markup inside <label>, so try this way
> > instead:
> >
> > <label index="rules_text">
> >   <![CDATA[
> >     <b>Foo</b><br />
> >     <i>bar</i>
> >   ]]>
> > </label>
> >
> > 'cdata' should be ignored by an xml parser. Alternatively, you could
> > escape all '<' and '>' going into the xml file to &lt; and &gt; and
> > back on the way out, but this might be impractical...
> >
> > -Christopher
> 
> nice Idea,.. seems not to work, if it had i would be ashamed,..
> 
> the <![CDATA[ ... ]]> worked fine as long as it was not renderd by
> Frontend of indexed -search...
> 
> The output of:
> <label index="rules_text">
>         <![CDATA[ <b>test</b> ]]>
> 
> </label>
> was:
> 
> &gt;b&lt;test&gt;/b&lt;
> 

Sounds like the indexed search plugin is htmlspecialchars()-ing its
output. I don't know if that's TS-configurable or not.

-Christopher




More information about the TYPO3-dev mailing list