src/ampl.js
Function parseHtml
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const parseHtml = (html, callback) => {
const parseRules = createParseRules();
const tagStack = [{text: "<!doctype html>"}];
const parser = new htmlparser.Parser({
onopentag: (name, attribs) => {