Replaces profanity words with other words in the provided input string.
Namespace: DotNetNuke.SecurityAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
C# |
---|
public string Replace( string inputString, PortalSecurity..::..ConfigType configType, string configSource, PortalSecurity..::..FilterScope filterScope ) |
Visual Basic |
---|
Public Function Replace ( 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 replaced.
Remarks
The correspondence between the words to search and the words to replace could be specified 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.