1
@"(?'tag_start'</?)(?'tag'\w+)((\s+(?'attr'(?'attr_name'\w+)(\s*=\s*(?:"".*?""|'.*?'|[^'"">\s]+)))?)+\s*|\s*)(?'tag_end'/?>)"

C# On Sanitize HTML

by Nick, June 23, 2008 00:35

@Chris: it is actually simp...

906432cc1eb080f5e5343438f654189e Talk

C# On Sanitize HTML

by Nick, June 22, 2008 12:10

Hi Jeff, point well taken ...

906432cc1eb080f5e5343438f654189e Talk

C# On Sanitize HTML

by Nick, June 21, 2008 13:59

Jeff I think we are forgett...

906432cc1eb080f5e5343438f654189e Talk
1
2
3
4
return HtmlTagExpression.Replace(text, new MatchEvaluator((Match m) => {
	if (!ValidHtmlTags.ContainsKey(m.Groups["tag"].Value))
		return String.Empty;
...

C# On Sanitize HTML

by Nick, June 20, 2008 15:16 Star_fullStar_fullStar_full

I just updated it to use St...

906432cc1eb080f5e5343438f654189e Talk