colorizeHTML
colorizeHTML(
html
,config
):string
Colorize an HTML string.
Parameters
Section titled “Parameters”string
raw HTML string to colorize.
config
Section titled “config”ColorizeHTMLConfig
= {}
optional ColorizeHTMLConfig to override defaults.
Returns
Section titled “Returns”string
the ANSI colored HTML string.
Example
Section titled “Example”getLogger().debug(colorizeHTML('<div class="greet">Hi</div>'))