1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Disable a few more tags when renderering to HTML

This commit is contained in:
Laurent Cozic
2019-01-19 18:14:01 +00:00
parent a8a7b7c07b
commit 28e40a5c86

View File

@ -513,8 +513,9 @@ class MdToHtml {
});
// To disable meta tags that would refresh the page - eg "<meta http-equiv="refresh" content="5; url=/">"
// Also disable a few other tags that are likely not meant to be rendered.
// https://github.com/laurent22/joplin/issues/769
renderedBody = renderedBody.replace(/<meta\s/, '&lt;meta ');
renderedBody = renderedBody.replace(/<(meta|title|body|html|script)/, '&lt;$1');
// https://necolas.github.io/normalize.css/
const normalizeCss = `