Problem blockquote tags and embed Twits
-
Hi!
We are having an issue with amp_content function when post content has “blockquote” tags and embed twits on it.
Example post content:
<p>Hello</p> <p> more content</p> <blockquote class="twitter-tweet" data-lang="es"><p lang="und" dir="ltr">👋</p>— Twitter (@Twitter) <a href="https://twitter.com/Twitter/status/1070726779424440320?ref_src=twsrc%5Etfw">6 de diciembre de 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>Output from amp_content() function:
<p>Hello</p> <p> more content</p> <p><amp-twitter data-tweetid="1070726779424440320" layout="responsive" width="600" height="480"></amp-twitter></p>It looks great! But if you have a blockquote tag like this:
<p>Hello</p> <blockquote>this is a quote!</blockquote> <p> more content</p> <blockquote class="twitter-tweet" data-lang="es"><p lang="und" dir="ltr">👋</p>— Twitter (@Twitter) <a href="https://twitter.com/Twitter/status/1070726779424440320?ref_src=twsrc%5Etfw">6 de diciembre de 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>The output is:
<p>Hello</p> <p><amp-twitter data-tweetid="1070726779424440320" layout="responsive" width="600" height="480"></amp-twitter></p>As you see, the blockquote and the “more content” paragraph has disapear 🙁
We are using 0.9.97.22 version and AMP Theme Framework 1.0 (it happends with default Swift theme)
Any ideas??
Thanks in advance!!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Problem blockquote tags and embed Twits’ is closed to new replies.