Functions
-
parseHtml( htmlString, stylesProcessor ) → Object
module:paste-from-office/filters/parse~parseHtml
Parses provided HTML extracting contents of <body>
and <style>
tags.
Parameters
htmlString
:
String
HTML string to be parsed.
stylesProcessor
:
StylesProcessor
-
Returns
Object
result
DocumentFragment
result.body Parsed body
content as a traversable structure.
String
result.bodyString Entire body content as a string.
Array.<CSSStyleSheet>
result.styles Array of native CSSStyleSheet
objects, each representing
separate style
tag from the source HTML.
String
result.stylesString All style
tags contents combined in the order of occurrence into one string.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing?
Please report it via our issue tracker.