(
html: string,
implicitTags: string[] = [],
implicitAttrs: {[k: string]: string[]} = {},
)
| 726 | } |
| 727 | |
| 728 | function extractErrors( |
| 729 | html: string, |
| 730 | implicitTags: string[] = [], |
| 731 | implicitAttrs: {[k: string]: string[]} = {}, |
| 732 | ): any[] { |
| 733 | const errors = extractMessages( |
| 734 | parseHtml(html), |
| 735 | implicitTags, |
| 736 | implicitAttrs, |
| 737 | /* preserveSignificantWhitespace */ true, |
| 738 | ).errors; |
| 739 | |
| 740 | return errors.map((e): [string, string] => [e.msg, e.span.toString()]); |
| 741 | } |
no test coverage detected
searching dependent graphs…