Home
TeamSite
Visual Format Issue converting <br> to &lt;br&gt;
acezone
Hi All,
Could any one please direct me on how to convert
"<br>"
to
"<br>"
? I have checked the most of the forums and support KB, but failed to find one. Even after applying the below code in visualformatconfig.xml file
<clean cr="cr" lf="lf" showonsize="5000" preferfonttag="false" reducetags="true" showdonemsg="true" prompt="true" hideobject="true" mswordfilter="true">
<preservechars value="<,>,&"/>
</clean>
Any pointer in resolving the issue shall be highly appreciated.
Regards,
Ace
Find more posts tagged with
Comments
Trey
It sounds like you are trying to get the raw output of the visual formatter to build what you want. This is not really going to give you what you want. It is better to handle it as an output translation. 2 ways to do this if you are using tpl's.
1. The more challenging, but elegant reusable solution is to write your own custom pt tag. You can take any value in a dcr and modify it how ever you want in the tag. You'll have to use emit_perl which can be a little funky and a pain to debug if you have not used it before.
2. The fastest way if you are only having to output this for one file is read the string in an block and modify it to meet your needs then output it back to the file.
HTH