PageParser

A page parser can parse an HTML page and replace the tags there. This class is used by the H2 Console.

Methods
static String escapeHtml(String s)
Convert data to HTML, including newlines and multiple spaces.
static String escapeHtml(String s)
Convert data to HTML, including newlines and multiple spaces.
Parameters:
s - the data
Returns:
the escaped html text
static String escapeHtmlData(String s)
Convert data to HTML, but don't convert newlines and multiple spaces.
static String escapeHtmlData(String s)
Convert data to HTML, but don't convert newlines and multiple spaces.
Parameters:
s - the data
Returns:
the escaped html text
static String escapeJavaScript(String s)
Escape text as a the javascript string.
static String escapeJavaScript(String s)
Escape text as a the javascript string.
Parameters:
s - the text
Returns:
the javascript string
static String parse(String page, Map settings)
Replace the tags in the HTML page with the given settings.
static String parse(String page, Map settings)
Replace the tags in the HTML page with the given settings.
Parameters:
page - the HTML page
settings - the settings
Returns:
the converted page