ezpublish - Ez publish 4.7: embed twit in xml block -
i want embed tweet xml block using ezoe. there way embed custom html code it? tweet embed code looks this:
<blockquote class="twitter-tweet" lang="en"><p>bla bla </p>— air france (@airfrance) <a href="https://twitter.com/airfrance/status/454220292685320192">april 9, 2014</a></blockquote><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
you need activate html
class literal
tag.
settings/content.ini
[literal] availableclasses[] # class 'html' disabled default because gives editors # possibility insert html , javascript code in xml blocks. # don't enable 'html' class unless trust users has # privileges edit objects containing xml blocks. #availableclasses[]=html customattributes[]
=> reproduce following in admin & front siteaccesses
settings/siteaccess/youradminsiteaccess/content.ini.append.php , settings/siteaccess/yourfrontsiteaccess/content.ini.append.php
[literal] availableclasses[]=html
once done, you'll able choose html
class.
that said, enabling feature suggests contributors aware of , concerned possible security issues such xss. should never enabled anonymous users (when let them create comment objects rich text fields instance).
Comments
Post a Comment