therealglazou / bluegriffon

BlueGriffon, the Web editor
Mozilla Public License 2.0
294 stars 71 forks source link

Blue Griffon corrupts <xmp> tag contents by encoding the > & < characters, causing incorrect rendering in browsers. #109

Open snovotill opened 8 months ago

snovotill commented 8 months ago

The

tag is still fully supported by FireFox and Chrome as of 2024 but it is fully unusable within BlueGriffon because BlueGriffon will replace the characters &gt; &amp; &lt; with &gt; &amp; &lt; whenever switching between Source and Wysiwyg views. This causes the characters to render incorrectly within FireFox and Chrome. This is only relevant to the <xmp> tag and no other HTML tags exhibit this behavior.</p> <p>In other words, <code>&lt;xmp&gt; Hello &lt;world&gt; &amp; be good!&lt;xmp&gt;</code> must NOT be changed to <code>&lt;xmp&gt; Hello &amp;lt;world&amp;gt; &amp;amp; be good!&lt;xmp&gt;</code> when inside the &lt;xmp tag, because it will then render INCORRECTLY in FireFox and Chrome.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>