クラス HtmlEscapeUtils

java.lang.Object
org.terasoluna.gfw.web.util.HtmlEscapeUtils

public final class HtmlEscapeUtils extends Object
utility class about HTML Escape processing
  • メソッドの詳細

    • htmlEscape

      public static String htmlEscape(Object input)
      escape html tags in the given string.

      target characters to escape are following
      < ====> &lt;
      > ====> &gt;
      & ====> &amp;
      " ====> &quot;
      ' ====> &#39;

      パラメータ:
      input - string to escape
      戻り値:
      escaped string. returns empty string if value is null or empty string.
      関連項目:
      • HtmlUtils.htmlEscape(String)