import {parse} from 'angular-html-parser'; const {rootNodes, errors} = parse(` <!DOCTYPE html> <html> <head> <title>Hello world!</title> </head> <body> <div>Hello world!</div> </body> </html> `);APIdeclare function parse(input: string, options?: Options): ng.ParseTreeResult...
import {parse} from 'angular-html-parser'; const {rootNodes, errors} = parse(` <!DOCTYPE html> <html> <head> <title>Hello world!</title> </head> <body> <div>Hello world!</div> </body> </html> `); API declare function parse(input: string, options?: Options): ng.ParseTreeResu...
Template parser from @angular/compiler package produces wrong locations for HTML self-closing tags. Here the initial simple template: <input type="text" /> <span> </span> And if we pass this template to the exported parseTemplate function from @angular/compiler package we can see that sourc...