Class Sanitizer
Sanitize strings to remove soft hyphens and other special characters.
Assembly: Dalamud.dll
View Source
Declaration
public class Sanitizer : ISanitizer
Implements:
Dalamud.Game.Text.Sanitizer.ISanitizer
Methods
Sanitize(string)
Creates a sanitized string using current clientLanguage.
View Source
Declaration
public string Sanitize(string unsanitizedString)
Returns
System.String
: A sanitized string.
Parameters
Type | Name | Description |
---|---|---|
System.String | unsanitizedString | An unsanitized string to sanitize. |
Sanitize(string, ClientLanguage)
Creates a sanitized string using request clientLanguage.
View Source
Declaration
public string Sanitize(string unsanitizedString, ClientLanguage clientLanguage)
Returns
System.String
: A sanitized string.
Parameters
Type | Name | Description |
---|---|---|
System.String | unsanitizedString | An unsanitized string to sanitize. |
Dalamud.Game.ClientLanguage | clientLanguage | Target language for sanitized strings. |
Sanitize(IEnumerable<string>)
Creates a list of sanitized strings using current clientLanguage.
View Source
Declaration
public IEnumerable<string> Sanitize(IEnumerable<string> unsanitizedStrings)
Returns
System.Collections.Generic.IEnumerable<System.String>
: A list of sanitized strings.
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | unsanitizedStrings | List of unsanitized string to sanitize. |
Sanitize(IEnumerable<string>, ClientLanguage)
Creates a list of sanitized strings using requested clientLanguage.
View Source
Declaration
public IEnumerable<string> Sanitize(IEnumerable<string> unsanitizedStrings, ClientLanguage clientLanguage)
Returns
System.Collections.Generic.IEnumerable<System.String>
: A list of sanitized strings.
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | unsanitizedStrings | List of unsanitized string to sanitize. |
Dalamud.Game.ClientLanguage | clientLanguage | Target language for sanitized strings. |