Skip to content

Commit

Permalink
All: Fixes #769: Disable META tags in Markdown viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Jan 15, 2019
1 parent 97d8682 commit 0c98573
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ReactNativeClient/lib/MdToHtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,9 @@ class MdToHtml {
return this.renderImageHtml_(before, src, after, options);
});

// To disable meta tags that would refresh the page - eg "<meta http-equiv="refresh" content="5; url=/">"
// https://github.com/laurent22/joplin/issues/769
renderedBody = renderedBody.replace(/<meta\s/, '&lt;meta ');

// https://necolas.github.io/normalize.css/
const normalizeCss = `
Expand Down

0 comments on commit 0c98573

Please sign in to comment.