Allowing unsafe HTML in help center articles

Return to top

4 Comments

  • Julia Shyshliuk

    Hi Zendesk Team, can I find any general resources at all to learn how to use the iframes in Zendesk Guide articles? 

    0
  • Russell Chee
    Zendesk Customer Care

    Hey Julia,

    Thanks for reaching out to Zendesk Support about your query, I hope you are doing well. I would like to set expectations that at this current time using iframe on Zendesk Guide articles are not supported as an intended workflow. There are third party resources that may be able to assist as a workaround but unfortunately we do not have any native articles that could assist on this. Let me know if you have any other questions or need anything else!

    Russell

    0
  • Kat Thorson

    So what in this coding is considered "unsafe" since it seems to be used everywhere for creating a note or warning box? When I use this code for creating note boxes, it won't appear in the published article because "display unsafe content is off.

    <section>
    <div style="background-color: #daf0ff; padding: 15px;">
    <p>Example text is here</p>
    </div>
    </section>

    1
  • Dave Dyson
    Zendesk Community Manager

    Hi Kat,

    As the article says, any tag or attribute that's not included in the lists above is considered unsafe; in your case, this would include the section tag, and the background-color and padding attributes.

    However, you can achieve much the same result without having to enable unsafe content, by adding a class to your theme's style.css file, and then referencing that in the article (since the class tag is considered safe). For example, if you add the following to the style.css file:

    .warning-box {
      background-color: #daf0ff;
      padding: 15px;
    }

    And then replace the your article html with this:

    <div class="warning-box">
      <p>Example text is here</p>
    </div>

    Your warning box should then appear in your published article:

    0

Please sign in to leave a comment.

Powered by Zendesk