mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-30 18:00:56 +01:00
added error notification for scrapy spiders
This commit is contained in:
16
frontend/src/utils/html.js
Normal file
16
frontend/src/utils/html.js
Normal file
@@ -0,0 +1,16 @@
|
||||
export default {
|
||||
htmlEscape: text => {
|
||||
return text.replace(/[<>"&]/g, function (match, pos, originalText) {
|
||||
switch (match) {
|
||||
case '<':
|
||||
return '<'
|
||||
case '>':
|
||||
return '>'
|
||||
case '&':
|
||||
return '&'
|
||||
case '"':
|
||||
return '"'
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user