Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
preservechars attribute in clean HTML
suresh_anand
The document of visual format at page 227 says:
For example, to prevent the .less than. (<) and .greater
than. (>) characters from being converted to their
character references, enter
preservechars value="<>"
I dont want my "< and ">" tags to be converted to <gt;
So i tried using this <clean charencode="charref" cr="cr" lf="lf" showonsize="5000" preferfonttag="false" reducetags="true" preservechars="<>;"/>
in my visualformatconfig.xml.But still the characters are converted .
Find more posts tagged with
Comments
conmgmt
did this work for you? .. I am trying the same thing.
LooseCannon
FYI,
The character "<" is illegal in XML. The parser interprets it as the start of a new element. So you need to convert the symbol to it's Entity Name "<" or Entity Number "<".
Johnny
Why do you need to do this?...
It is stored as escaped characters in the DCR.
But when you access them through the templating API it is converted back.
John Cuiuli
Consultant
Sydney, Australia
LooseCannon
>>Why do you need to do this?..
Who is this question addressed to?
Johnny
Sorry the question is to the original poster.
Im curious to find out the situation.
Even though they may be stored as escaped characters in the DCR, the presentation API will present them in their original form.
If its not the case, maybe there is some other problem here
John Cuiuli
Consultant
Sydney, Australia