Clean removes any HTML Tags, Entities (and optionally any punctuation) from
a string
Namespace: DotNetNuke.Common.UtilitiesAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public static string Clean( string HTML, bool RemovePunctuation ) |
Visual Basic |
---|
Public Shared Function Clean ( HTML As String, RemovePunctuation As Boolean ) As String |
Parameters
- HTML
- Type: System..::..String
The Html to clean
- RemovePunctuation
- Type: System..::..Boolean
A flag indicating whether to remove punctuation
Return Value
The cleaned up string
Remarks
Encoded Tags are getting decoded, as they are part of the content!