Class AbstractMarkupModel

    • Constructor Detail

    • Method Detail

      • getAttributeQuote

        public char getAttributeQuote()
        Description copied from interface: MarkupModel
        What character is used when generating quotes around attribute values? This will be either a single or double quote.
        Specified by:
        getAttributeQuote in interface MarkupModel
        Returns:
        single (') or double (") quote
      • encode

        public String encode​(String content)
        Passes all characters but '<', '>' and '&' through unchanged.
        Specified by:
        encode in interface MarkupModel
        Parameters:
        content - to be filtered
        Returns:
        the filtered content
      • encodeQuoted

        public void encodeQuoted​(String content,
                                 StringBuilder builder)
        Description copied from interface: MarkupModel
        Encodes the characters into the buffer for use in a quoted value (that is, an attribute value), converting control characters (such as '<') into corresponding entities (such as &lt;). In addition, double quotes must be quoted or otherwise escaped.
        Specified by:
        encodeQuoted in interface MarkupModel
        Parameters:
        content - to be filtered
        builder - to receive the filtered content