Enum Class SafelistType

java.lang.Object
java.lang.Enum<SafelistType>
org.iplass.mtp.entity.definition.normalizers.SafelistType
All Implemented Interfaces:
Serializable, Comparable<SafelistType>, Constable

public enum SafelistType extends Enum<SafelistType>
Preset types for Safelist used in HTML sanitization. Corresponds to the factory methods of jsoup's org.jsoup.safety.Safelist.
  • Enum Constant Details

    • NONE

      public static final SafelistType NONE
      すべてのHTMLを除去(テキストのみ)
    • SIMPLE_TEXT

      public static final SafelistType SIMPLE_TEXT
      b, em, i, strong, u のみ許可
    • BASIC

      public static final SafelistType 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

      public static final SafelistType BASIC_WITH_IMAGES
      basic に加えて img タグを許可
    • RELAXED

      public static final SafelistType RELAXED
      広範囲のHTMLタグ・属性を許可
  • Method Details

    • values

      public static SafelistType[] 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

      public static SafelistType valueOf(String name)
      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 name
      NullPointerException - if the argument is null