Posted on: 5/10/2011 4:59:11 AM | Views : 269

Hi All,
So I stated using this for html encode and I thought that was exactly what I wanted.... it does what it's supposed to do but, not sure if its because it renders in an asp control (label/textbox) but is doesnt translate back on the screen.  The users use < > as a formating for some of their data that they enter so it would be nice to should them < instead of &lt;
<asp:Label ID="lblPageModified" runat="server" Text='<%# System.Web.HttpUtility.HtmlEncode(Eval("PageModified").ToString()) %>'></asp:Label> Do anyone know how to build a custom html encoder so instead of "<" turning into "&lt:" I can encode it to look like " < "
I think the spaces will still prevent a script from running on a webpage? 
Thank you,
Nicole
...

Go to the complete details ...