Interface HtmlUtils


  • public interface HtmlUtils
    This interface gives you access to HTML encoding and decoding features.
    • Method Detail

      • encode

        default java.lang.String encode​(java.lang.String html)
        Encode HTML text using HtmlEncoding.STANDARD encoding. UTF-8 charset is assumed.
        Parameters:
        html - String to be encoded.
        Returns:
        the encoded String.
      • encode

        java.lang.String encode​(java.lang.String html,
                                HtmlEncoding encoding)
        Encode HTML text. UTF-8 charset is assumed.
        Parameters:
        html - String to be encoded.
        encoding - HtmlEncoding to be used.
        Returns:
        the encoded String.
      • decode

        java.lang.String decode​(java.lang.String encodedHtml)
        Decode encoded HTML text. UTF-8 charset is assumed.
        Parameters:
        encodedHtml - String to be decoded.
        Returns:
        the decoded String.