Package io.didomi.sdk.utils
Object TextHelper
-
- All Implemented Interfaces:
public class TextHelper
-
-
Field Summary
Fields Modifier and Type Field Description public final static TextHelperINSTANCE
-
Method Summary
Modifier and Type Method Description final StringgetHtmlWithoutLinks(String html)Remove <a> tags from html final BooleanisTwoLetters(String string)Checks if a string contains only letters and its exact length is 2. final BooleanisLocaleString(String string)Checks if a string contains a valid locale string (xx or xx_XX) - case insensitive -
-
Method Detail
-
getHtmlWithoutLinks
final String getHtmlWithoutLinks(String html)
Remove <a> tags from html
-
isTwoLetters
final Boolean isTwoLetters(String string)
Checks if a string contains only letters and its exact length is 2.
-
isLocaleString
final Boolean isLocaleString(String string)
Checks if a string contains a valid locale string (xx or xx_XX) - case insensitive
-
-
-
-