Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jinjinyun committed May 20, 2016
1 parent abd0b0c commit 1d45d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom-parser.js
Expand Up @@ -2,7 +2,8 @@ function DOMParser(options){
this.options = options ||{locator:{}};

}
DOMParser.prototype.parseFromString = function(source,mimeType){
DOMParser.prototype.parseFromString = function(source,mimeType){
var source = source.replace(/\r/g, ""); // remove 0D char from string. NodeJS fs reads \n like \r\n
var options = this.options;
var sax = new XMLReader();
var domBuilder = options.domBuilder || new DOMHandler();//contentHandler and LexicalHandler
Expand Down

0 comments on commit 1d45d32

Please sign in to comment.