Clean removes any HTML Tags, Entities (and optionally any punctuation) from a string

Namespace: DotNetNuke.Common.Utilities
Assembly: 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!

See Also