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