Removes profanity words in the provided input string.

Namespace: DotNetNuke.Security
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public string Remove(
	string inputString,
	PortalSecurity..::..ConfigType configType,
	string configSource,
	PortalSecurity..::..FilterScope filterScope
)
Visual Basic
Public Function Remove ( 
	inputString As String,
	configType As PortalSecurity..::..ConfigType,
	configSource As String,
	filterScope As PortalSecurity..::..FilterScope
) As String

Parameters

inputString
Type: System..::..String
The string to search the words in.
configType
Type: DotNetNuke.Security..::..PortalSecurity..::..ConfigType
The type of configuration.
configSource
Type: System..::..String
The external file to search the words. Ignored when configType is ListController.
filterScope
Type: DotNetNuke.Security..::..PortalSecurity..::..FilterScope
When using ListController configType, this parameter indicates which list(s) to use.

Return Value

The original text with the profanity words removed.

Remarks

The words to search could be defined in two different places: 1) In an external file. (NOT IMPLEMENTED) 2) In System/Site lists. The name of the System List is "ProfanityFilter". The name of the list in each portal is composed using the following rule: "ProfanityFilter-" + PortalID.

See Also