CleanWithTagInfo removes unspecified HTML Tags, Entities (and optionally any punctuation) from a string.
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string CleanWithTagInfo( string html, string tagsFilter, bool removePunctuation ) |
Visual Basic |
---|
Public Shared Function CleanWithTagInfo ( html As String, tagsFilter As String, removePunctuation As Boolean ) As String |
Parameters
- html
- Type: System..::..String
paramhtmlM:DotNetNuke.Common.Utilities.HtmlUtils.CleanWithTagInfo(System.String,System.String,System.Boolean)
- tagsFilter
- Type: System..::..String
paramtagsFilterM:DotNetNuke.Common.Utilities.HtmlUtils.CleanWithTagInfo(System.String,System.String,System.Boolean)
- removePunctuation
- Type: System..::..Boolean
paramremovePunctuationM:DotNetNuke.Common.Utilities.HtmlUtils.CleanWithTagInfo(System.String,System.String,System.Boolean)