Class SimpleHTMLEncoder

  • All Implemented Interfaces:

    public class SimpleHTMLEncoder
    extends java.lang.Object
    implements Encoder
    Simple Encoder implementation to escape text for HTML output
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String encodeText​(java.lang.String originalText)  
      static java.lang.String htmlEncode​(java.lang.String plainText)
      Encode string into HTML
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleHTMLEncoder

        public SimpleHTMLEncoder()
    • Method Detail

      • encodeText

        public java.lang.String encodeText​(java.lang.String originalText)
        Specified by:
        encodeText in interface Encoder
        originalText - The section of text being output
      • htmlEncode

        public static final java.lang.String htmlEncode​(java.lang.String plainText)
        Encode string into HTML