Public
Occasional Advisor

How can a GitHub Gist be embedded in a post on a Khoros Community?

Does anybody know if/how a GitHub Gist can be embedded in a post on a Khoros Community (e.g. blog)?

A Gist is normally embedded in a page by copying the "Embed" HTML snippet text from the Gist and pasting that text into a page. For example, from this Gist

cgrinton_0-1602248154997.png

This gives an HTML <script> tag to be pasted into a web page like:

<script src="https://gist.github.com/chrisg2/ffc02723698a993b7697f61df53b1451.js"></script>

However I can't find any way to allow a <script> tag like this to be used in a Khoros Community post. I'd like to include Gists in a blog posting.

3 Replies 3
Honored Contributor

I don't think it's possible to include <script> tags within the content of a blog post / forum post. Even with "Advanced" HTML permissions, <script> tags are filtered out.

You can embed <script> tags within custom content components, so you could put one in the sidebar of the blog, for example. 

Frequent Advisor

@cgrinton I would like to do this, too. Did you ever settle on a solution, within or outside of Khoros? 

Occasional Advisor

@tealiumjustin - unfortunately I haven't found an effective solution to this yet. I'd still love to find one though!

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.