Is there a Delphi standard function for escaping HTML?

Posted by Mason Wheeler on Stack Overflow See other posts from Stack Overflow or by Mason Wheeler
Published on 2010-06-03T16:55:26Z Indexed on 2010/06/03 17:04 UTC
Read the original article Hit count: 244

Filed under:
|
|

I've got a report that's supposed to take a grid control and produce HTML output. One of the columns in the grid can display any of a number of values, or <Any>. When this gets output to HTML, of course, it ends up blank.

I could probably write up some routine to use StringReplace to turn that into &lt;Any&gt; so it would display this particular case correctly, but I figure there's probably one in the RTL somewhere that's already been tested and does it right. Anyone know where I could find it?

© Stack Overflow or respective owner

Related posts about html

Related posts about delphi