[Typo3-dev] locallang.xml +HTML Tag
Dmitry Dulepov
typo3 at fm-world.ru
Tue Jul 26 10:41:01 CEST 2005
Hi!
I would raise a bug about indexed search... This is really an issue.
Dmitry.
Chris Wittmann [SwiftLizard] 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 < and > 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:
>
> >b<test>/b<
>
>
> wired stuff... because with:
> <label index="rules_text">
> <![CDATA[ >b<test>/b< ]]>
> </label>
>
> i also get:
>
> >b<test>/b<
>
> any further ideas anyone ?
>
> <label index="rules_text">
> >b<test>/b<
> </label>
>
> also didn´t work
>
> chris
More information about the TYPO3-dev
mailing list