* valid expressions are * tag nested * * nested * tag nested[attribute] * tag nested[attribute=""] * tag nested[attribute!=""] * tag nested:0 //for future * @param {string} tagName * @returns
(node)
| 210 | * @returns |
| 211 | */ |
| 212 | isStopNode(node){ |
| 213 | for (let i = 0; i < this.stopNodes.length; i++) { |
| 214 | const givenPath = this.stopNodes[i]; |
| 215 | if(givenPath.match(this.tagsStack, node)) return true; |
| 216 | } |
| 217 | return false |
| 218 | } |
| 219 | |
| 220 | replaceEntities(text){ |
| 221 | //TODO: if option is set then replace entities |
no test coverage detected