Skip to content
Myr

libxmljs parseString -> parseHtmlString

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 54a8a74 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/express/element-collection.js+1 added-1 removed
30 unmodified lines
31 if (typeof markup != 'string')32 return this.__super__(markup)33 if (!(/<html>/.test(markup))) 34 markup = '<html><body>' + markup + '</body></html>'35 this.document = libxml.parseString(markup)35 this.document = libxml.parseHtmlString(markup)36 this.arr = [this.document.root()]37 },38 39 /**
140 unmodified lines