3.2.1 • Published 1 year ago
dom-parse v3.2.1
dom-parse
Parse a string of HTML or XML (including MathML, SVG, XHTML) into a document object.
Uses the HTML template element in browsers and jsdom in Node.js.
Usage
import { parse } from 'dom-parse';
parse(string);
Parameters
string
String containing HTML or XML to parse.
Return value
DocumentFragment
Object containing Node structure of HTML/XML parsed.
Example
import { parse } from 'dom-parse';
parse('Some <em>awesome</em> markup <img src="explosion.gif">');
// returns DocumentFragment(4) [ #text, em, #text, img ]
3.2.1
1 year ago
3.2.0
1 year ago
3.1.0
1 year ago
3.0.0
2 years ago
2.1.0
5 years ago
2.0.3
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.2.1
8 years ago
1.2.0
8 years ago
1.1.2
8 years ago
1.1.1
8 years ago
1.1.0
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.0.3
8 years ago
0.0.2
8 years ago
0.0.1
8 years ago