HTML Encoding Unwanted Tags

Sep 23, 2008 at 8:30 AM
I saw this post for removing unwanted tags:

Nov 17 2007 at 12:55 PM
<input name="ctl00$ctl00$Content$TabContentPanel$Content$PostRepeater$ctl02$PostId" id="ctl00_ctl00_Content_TabContentPanel_Content_PostRepeater_ctl02_PostId" value="58661" type="hidden"> Of course. Just select the nodes you want to remove (using SelectNodes for example), and remove them using node.ParentNode.RemoveChild(node);"

Instead of removing unwanted tags, I want to HTTPEncode it.  How do I do that?