[de][bu] Fix bug #79827

This commit is contained in:
Nikita Khromov
2026-02-05 18:09:58 +07:00
committed by Ilya Kirillov
parent 829c6de4af
commit 3a19f11a85

View File

@ -401,7 +401,12 @@
// рендер html тагов
if (!this.Config.renderHTMLTags) {
sOutputText = sOutputText.replace(/</gi, '&lt;').replace(/>/gi, '&gt;');
sOutputText = sOutputText = sOutputText
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}
return sOutputText;