Class HtmlConverter

java.lang.Object
org.h2.build.indexer.HtmlConverter

public class HtmlConverter extends Object
This class replaces HTML entities in text (for example ü) to the correct character and vice versa.
  • Method Details

    • convertStringToHtml

      public static String convertStringToHtml(String s)
      Convert a string to HTML by encoding all required characters.
      Parameters:
      s - the string
      Returns:
      the HTML text
    • convertHtmlToString

      public static String convertHtmlToString(String html)
      Convert a HTML encoded text to a string.
      Parameters:
      html - the HTML text
      Returns:
      the string