This commit is contained in:
Daniel Odendahl Jr
2017-06-01 08:44:56 +00:00
parent 14f85f94bd
commit c923e0091e
-13
View File
@@ -1,13 +0,0 @@
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;