Class: Transformation

Help4.engine.ur.Transformation()

Text transformation/format handling for UR harmonization

Constructor

new Transformation()

Source:

Methods

(static) reduceHeadingLevels(html, maxLevel) → {string}

Reduce HTML heading elements to h(maximum level) and below; smaller numbers mean bigger headings; h2 > h3 > h4 > h5 > h6; this is a second level processing step, assuming input html is valid; maxLevel is the largest allowed heading level in the output html
Parameters:
Name Type Description
html string
maxLevel number
Source:
Returns:
Type
string