Open dominhhai opened 6 years ago
const ignoredTags = ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
var tagsTmp = new Map()
for (let tag of ignoredTags) {
html = html.replace(/<tag>(.*?)</tag>/g, function(outer, inner, offset) {
var key = tag + '_' + offset
tagsTmp[key] = outer
return key
})
}