Class EscapeHtml


  • public class EscapeHtml
    extends java.lang.Object
    A class that can be used to convert escape characters in a Html string.
    Since:
    SuperWaba 5.71
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String amp
      When passing the escaped string to a SOAP service, you must change this to
    • Constructor Summary

      Constructors 
      Constructor Description
      EscapeHtml()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String escape​(java.lang.String s)
      Converts special chars into escaped sequences.
      static java.lang.String unescape​(java.lang.String escaped)
      Converts escaped sequences into special chars.
      • Methods inherited from class java.lang.Object

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

      • amp

        public static java.lang.String amp
        When passing the escaped string to a SOAP service, you must change this to
         EscapeHtml.amp = "&";
         
        and then set back to null when done.
        Since:
        TotalCross 1.14
    • Constructor Detail

      • EscapeHtml

        public EscapeHtml()
    • Method Detail

      • escape

        public static final java.lang.String escape​(java.lang.String s)
        Converts special chars into escaped sequences. Note that the space is NOT converted.
      • unescape

        public static final java.lang.String unescape​(java.lang.String escaped)
        Converts escaped sequences into special chars. Note that the space IS converted if it appears escaped.