Class PageParser

java.lang.Object
org.h2.server.web.PageParser

public class PageParser extends Object
A page parser can parse an HTML page and replace the tags there. This class is used by the H2 Console.
  • Method Details

    • parse

      public static String parse(String page, Map<String,Object> settings)
      Replace the tags in the HTML page with the given settings.
      Parameters:
      page - the HTML page
      settings - the settings
      Returns:
      the converted page
    • escapeHtml

      public static String escapeHtml(String s)
      Convert data to HTML, including newlines and multiple spaces.
      Parameters:
      s - the data
      Returns:
      the escaped html text