Enum Class SafelistType
- All Implemented Interfaces:
Serializable,Comparable<SafelistType>,Constable
Preset types for Safelist used in HTML sanitization.
Corresponds to the factory methods of jsoup's
org.jsoup.safety.Safelist.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription基本的なHTMLタグ(a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul)を許可basic に加えて img タグを許可すべてのHTMLを除去(テキストのみ)広範囲のHTMLタグ・属性を許可b, em, i, strong, u のみ許可 -
Method Summary
Modifier and TypeMethodDescriptionstatic SafelistTypeReturns the enum constant of this class with the specified name.static SafelistType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
すべてのHTMLを除去(テキストのみ) -
SIMPLE_TEXT
b, em, i, strong, u のみ許可 -
BASIC
基本的なHTMLタグ(a, b, blockquote, br, cite, code, dd, dl, dt, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul)を許可 -
BASIC_WITH_IMAGES
basic に加えて img タグを許可 -
RELAXED
広範囲のHTMLタグ・属性を許可
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-