Line 643: '*******************************************************************************************************************************************************************************
Line 644: Public Shared Function stripBadHtml(ByVal theString As String) As String
Line 645: theString = Regex.Replace(theString, "<(meta|link|/?o:|/?style|/?div|/?object|/?param|/?iframe|/?embed|/?st\d|/?head|/?html|body|/?body|/?script|/?span|/?xml|!\[)[^>]*?>", String.Empty, RegexOptions.IgnoreCase And RegexOptions.IgnorePatternWhitespace And RegexOptions.Multiline)
Line 646: theString = Regex.Replace(theString, "/\s+(class|font|style|o:p)=""[^""]+""/", String.Empty, RegexOptions.IgnoreCase And RegexOptions.IgnorePatternWhitespace And RegexOptions.Multiline)
Line 647: theString = Regex.Replace(theString, "<([a-z][a-z0-9]*)\b (?:(?:class|lang|style|size|face|align)\s*=\s*(?:'[^<']*'|""[^<""]*""|[^\s<>]+)\s+)+.*?>", String.Empty, RegexOptions.IgnoreCase And RegexOptions.IgnorePatternWhitespace And RegexOptions.Multiline)
|