StripNonWord removes any Non-Word Character from the content

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static string StripNonWord(
	string HTML,
	bool RetainSpace
)
Visual Basic
Public Shared Function StripNonWord ( 
	HTML As String,
	RetainSpace As Boolean
) As String

Parameters

HTML
Type: System..::..String
The HTML content to clean up
RetainSpace
Type: System..::..Boolean
Indicates whether to replace the Non-Word Character by a space (true) or nothing (false)

Return Value

The cleaned up string

Remarks