escaping whole html tags

Yes ive googled it. I need to display tags (ie <img src="blah"> ) without them being processed. One solution is ofcourse to use a text box. Is there another way?

thanks in advance
atomi
 
Try using &amp;lt; and &amp;gt; instead of the actual < and >. They shouldn't be parsed as actual HTML TAGS when constructing the DOM.

Hope this helps,

Tr1stan
 
atomi said:
Yes ive googled it. I need to display tags (ie <img src="blah"> ) without them being processed. One solution is ofcourse to use a text box. Is there another way?

thanks in advance
atomi
You could simply do a ReplaceList(MyString, "<,>,&", "&lt;,&gt;,&amp;") either on a usage by usage basis or actually throw it into a CFFunction so you can reuse the code whenever you need it.

Hatton
 
indeed Hatton...
Would you check out my sites and pm me what you think, that is if your up for it, of course. Give me some pointers and such. :D
 
Back
Top