HTMLEscapeOptions

struct HTMLEscapeOptions

Global HTML escape options

  • Specifies if all ASCII characters should be skipped when escaping text

    Declaration

    Swift

    public static var allowUnsafeSymbols: Bool
  • Specifies if decimal escapes should be used instead of hexadecimal escapes

    Declaration

    Swift

    public static var decimal: Bool
  • Specifies if all characters should be escaped, even if some are safe characters

    Declaration

    Swift

    public static var encodeEverything: Bool
  • Specifies if named character references should be used whenever possible

    Declaration

    Swift

    public static var useNamedReferences: Bool