(options)
| 18 | |
| 19 | export default class Xml2JsParser { |
| 20 | constructor(options) { |
| 21 | this.options = options; |
| 22 | |
| 23 | this.currentTagDetail = null; |
| 24 | this.tagTextData = ""; |
| 25 | this.tagsStack = []; |
| 26 | this.entityParser = new EntitiesParser(options.htmlEntities); |
| 27 | this.stopNodes = []; |
| 28 | for (let i = 0; i < this.options.stopNodes.length; i++) { |
| 29 | this.stopNodes.push(new TagPath(this.options.stopNodes[i])); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | parse(strData) { |
| 34 | this.source = new StringSource(strData); |