最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

HTML block code breaking

programmeradmin2浏览0评论

Has anyone found a way around the Gutenberg HTML block changing HTML code when saved?

I the following AMP code that I need to insert:

<amp-iframe sandbox='allow-scripts allow-same-origin' layout=responsive resizable noloading src='/visualisation/456626/embed?auto=1' width=400 height=300>
<amp-img layout=fixed height=64 width=64 src='/resources/bosh.svg' placeholder style='margin: auto'></amp-img>
<div overflow></div></amp-iframe><p>
<a href='/visualisation/456626/?utm_source=embed&utm_campaign=visualisation/456626'>
<amp-img layout=fixed height=16 width=105 src='/resources/made_with_flourish.svg' alt='Made with Flourish'></amp-img></a></p>

But when I save it changes the amp-iframe and amp-img tags to amp -iframe and amp -img and breaks the code.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论