Last post Oct 30, 2013 12:29 PM by dow7
Oct 29, 2013 05:14 PM|dow7|LINK
How to allow only the following safe, whitelisted subset of HTML tags to enter text in textarea, but i prefer not to use some other editor tools?
<a>, <b>, <em>, <u>, <strike>
Oct 29, 2013 05:49 PM|Mikesdotnetting|LINK
You can use the HtmlAgilityPack to create a whitelist of acceptable tags. Here's a couple of examples:
You can get the library from Nuget.
Oct 30, 2013 08:01 AM|dow7|LINK
You can use the HtmlAgilityPack
Oct 30, 2013 09:49 AM|Mikesdotnetting|LINK
Strong drink, lots of free time and regular expressions.
Please don't ask for sample code :-) I wouldn't waste my time writing and testing it. I'd always use HtmlAgilityPack for this kind of thing.
Oct 30, 2013 12:29 PM|dow7|LINK
:) i've got the idea, thanks.