Улучшение парсинга html

This commit is contained in:
Book Pauk
2019-03-16 16:40:31 +07:00
parent e800dfe796
commit 983d9ee1b9
3 changed files with 9 additions and 0 deletions

View File

@@ -79,6 +79,8 @@ class ConvertHtml extends ConvertBase {
const newPara = new Set(['tr', '/table', 'hr', 'br', 'br/', 'li', 'dt', 'dd', 'p', 'title', '/title', 'h1', 'h2', 'h3', '/h1', '/h2', '/h3']);
const onTextNode = (text, cutCounter, cutTag) => {// eslint-disable-line no-unused-vars
text = this.escapeEntities(text);
if (!cutCounter && !(cutTitle && inTitle)) {
let tOpen = (bold ? '<strong>' : '');
tOpen += (italic ? '<emphasis>' : '');