Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
} else {
log('渲染Text组件', inInsideView, node.name, depth)
let inlineNode = renderInlineNode(index, [], inInsideView)
// console.log('???', parent && parent.attribs && parent.attribs.href, parent && parent.name, '====>')
return (
)
}
}
})
}
const handler = new htmlparser.DomHandler(function (err, dom) {
if (err) done(err)
done(null, domToElement(dom, null, !opts.shouldForceInline))
})
const parser = new htmlparser.Parser(handler)
parser.write(rawHtml)
parser.done()
}
const { NodeComponent } = opts;
return (
{linebreakBefore}
{listItemPrefix}
{domToElement(node.children, node)}
{linebreakAfter}
);
}
});
}
const handler = new htmlparser.DomHandler((err, dom) => {
if (err) done(err);
done(null, domToElement(dom));
});
const parser = new htmlparser.Parser(handler);
parser.write(rawHtml);
parser.done();
}
key={index}
onPress={linkPressHandler}
style={!node.parent ? styles[node.name] : null}
onLongPress={linkLongPressHandler}
>
{linebreakBefore}
{listItemPrefix}
{domToElement(node.children, node)}
{linebreakAfter}
);
}
});
}
const handler = new htmlparser.DomHandler(function(err, dom) {
if (err) done(err);
done(null, domToElement(dom));
});
const parser = new htmlparser.Parser(handler);
parser.write(rawHtml);
parser.done();
}