how to escape HTML contents in DHTML

hi all,

I am using DHTML for displaying records. If one column contains HTML contents like
<DIV id="DS1" style="display:" title="S1"><TABLE border=0 rules="NONE" frame="VOID" cellspacing=0 cellpadding=0  width="100%">
<TR width="100%">
      <TD align="left" valign="top" width="3%">&nbsp;</TD>
      <TD align="left" valign="top" width="3%">&nbsp;</TD>
      <TD align="left" valign="top" width="4%">1233</TD>
      <TD align="left" valign="top" width="90%">text</TD>

i have to display this one like text(RO). but it is actually creating table row column.
can you please tell me how to escape HTML contents in DHTML.

Please check this article … ial_charac

Default column types ( ro, txt, ed, co ) process incoming data as HTML

If you want to render tags as text , you need to use text versions of column types

ed => edtxt
ro => rotxt
txt => txttxt
co => cotxt

thanks man …

rotxt works fine …
thanks again…

I have a grid column of type “edtxt”

If the user enters something like “me & marley”, it works fine.

However, user an enter HTML commands like
, , etc and it will affect the contents of the column.

For example: me & marley will show it as bold,

me & marley will insert a horizontal line, etc.

This could be dangerous! How do I prevent this?

I’m hearing nothing but crickets… any answers?

Unfortunately the issue cannot be reconstructed locally.
Please, provide a complete demo with exact steps to reconstruct the issue.