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;'
}
})
}
}

View File

@@ -4,6 +4,7 @@ import tour from './tour'
import log from './log'
import scrapy from './scrapy'
import doc from './doc'
import html from './html'
export default {
stats,
@@ -11,5 +12,6 @@ export default {
tour,
log,
scrapy,
doc
doc,
html
}