Поправка

This commit is contained in:
Book Pauk
2019-02-05 16:04:01 +07:00
parent d62b475fdd
commit f7596dbe4e

View File

@@ -136,6 +136,8 @@ export default class BookParser {
const onTextNode = (text) => {// eslint-disable-line no-unused-vars
text = he.decode(text);
text = text.replace(/>/g, '>');
text = text.replace(/</g, '&lt;');
text = text.replace(/[\t\n\r]/g, ' ');
if (text != ' ' && text.trim() == '')