Skip to main content

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
TypeNameDescription
System.StringunsanitizedStringAn 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
TypeNameDescription
System.StringunsanitizedStringAn unsanitized string to sanitize.
Dalamud.Game.ClientLanguageclientLanguageTarget 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
TypeNameDescription
System.Collections.Generic.IEnumerable<System.String>unsanitizedStringsList 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
TypeNameDescription
System.Collections.Generic.IEnumerable<System.String>unsanitizedStringsList of unsanitized string to sanitize.
Dalamud.Game.ClientLanguageclientLanguageTarget language for sanitized strings.