Interface ISanitizer
Sanitize strings to remove soft hyphens and other special characters.
Assembly: Dalamud.dll
View Source
Declaration
public interface ISanitizer
Methods
Sanitize(string)
Creates a sanitized string using current clientLanguage.
View Source
Declaration
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
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
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
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. |