added error notification for scrapy spiders

This commit is contained in:
marvzhang
2020-06-18 12:54:12 +08:00
parent 6a1c09bb46
commit 3ff96a237a
7 changed files with 118 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
export default {
htmlEscape: text => {
return text.replace(/[<>"&]/g, function (match, pos, originalText) {
switch (match) {
case '<':
return '&lt;'
case '>':
return '&gt;'
case '&':
return '&amp;'
case '"':
return '&quot;'
}
})
}
}