This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:02 +00:00
parent 7802bb49cb
commit 14f85f94bd
129 changed files with 1915 additions and 1720 deletions
+13
View File
@@ -0,0 +1,13 @@
class Util {
static cleanXML(str) {
return str
.replace(/(<br \/>)/g, '')
.replace(/(&#039;)/g, '\'')
.replace(/(&mdash;)/g, '—')
.replace(/(&#034;|&quot;)/g, '"')
.replace(/(&#038;)/g, '&')
.replace(/(\[i\]|\[\/i\])/g, '*');
}
}
module.exports = Util;