Interface HtmlUtils


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

    • encode

      String encode(String html)
      Encode HTML text using HtmlEncoding.STANDARD encoding.
      Parameters:
      html - String to be encoded.
      Returns:
      the encoded String.
    • encode

      String encode(String html, HtmlEncoding encoding)
      Encode HTML text.
      Parameters:
      html - String to be encoded.
      encoding - HtmlEncoding to be used.
      Returns:
      the encoded String.
    • decode

      String decode(String encodedHtml)
      Decode encoded HTML text.
      Parameters:
      encodedHtml - String to be decoded.
      Returns:
      the decoded String.