com.ibm.commerce.usermanagement.commands

Class HTMLEncoder

  • java.lang.Object
    • com.ibm.commerce.usermanagement.commands.HTMLEncoder


  • public class HTMLEncoder
    extends java.lang.Object
    The HTMLEncoder class is a utility class which is used to do HTML encoding. Special characters like angle bracket (<) need to be encoded in HTML format. For example
      < becomes &lt;
     
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      HTMLEncoder()
      HTMLEncoder constructor comment.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String encodeHTMLSymbols(java.lang.String inBuf)
      This method HTMLEncodes the specified String.
      • Methods inherited from class java.lang.Object

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

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • HTMLEncoder

        public HTMLEncoder()
        HTMLEncoder constructor comment.
    • Method Detail

      • encodeHTMLSymbols

        public static java.lang.String encodeHTMLSymbols(java.lang.String inBuf)
        This method HTMLEncodes the specified String. Special character like the quotation (") or angle bracket (<) needs to be encoded in HTML format. For example
          " becomes &quot;
          < becomes &lt;
         
        Parameters:
        HTML - code need to encode
        Returns:
        Encoded HTML