Title: embed code
Last modified: May 24, 2022

---

# embed code

 *  [Jay](https://wordpress.org/support/users/jaypozo/)
 * (@jaypozo)
 * [4 years ago](https://wordpress.org/support/topic/embed-code-18/)
 * Hi there, I’m trying to use Atlas to allow me to use tiktok embeds as a type 
   to serve over graphql. I am trying to get the richtext type to work but it seems
   like it will be a bit janky. Plain text doesn’t work as all the HTML tags get
   stripped out. Any chance there will be / could be a “code” type added in the 
   near future?
 * Thanks!
    Jay

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Nick C](https://wordpress.org/support/users/modernnerd/)
 * (@modernnerd)
 * [4 years ago](https://wordpress.org/support/topic/embed-code-18/#post-15676686)
 * Thanks for the suggestion, [@jaypozo](https://wordpress.org/support/users/jaypozo/)!
 * The plain text field currently filters HTML output as you noted, but we could
   add an option to prevent filtering for folks who want to use plain text for HTML
   embed code.
 * We’ve added this to our product backlog to take a look at in the future. I don’t
   have a timeline quite yet, but thank you very much for sharing your use-case 
   here.
 * As a workaround for now, you could use a plain text field with the HTML link 
   to the TikTok (instead of the full HTML embed code). Then on the frontend you
   can use TikTok’s oembed API to grab the embed HTML. For example, a request to
   this URL will give you the embed HTML in the ‘html’ property of the response,
   as well as other properties that might be useful on the frontend like the thumbnail
   URL and size:
 * `https://www.tiktok.com/oembed?url=https://www.tiktok.com/@scout2015/video/6718335390845095173`
 * TikTok has docs on this here if you’d like to learn more: [https://developers.tiktok.com/doc/embed-videos](https://developers.tiktok.com/doc/embed-videos)
    -  This reply was modified 4 years ago by [Nick C](https://wordpress.org/support/users/modernnerd/).
    -  This reply was modified 4 years ago by [Nick C](https://wordpress.org/support/users/modernnerd/).

Viewing 1 replies (of 1 total)

The topic ‘embed code’ is closed to new replies.

 * ![](https://ps.w.org/atlas-content-modeler/assets/icon.svg?rev=2609089)
 * [Atlas Content Modeler](https://wordpress.org/plugins/atlas-content-modeler/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/atlas-content-modeler/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/atlas-content-modeler/)
 * [Active Topics](https://wordpress.org/support/plugin/atlas-content-modeler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/atlas-content-modeler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/atlas-content-modeler/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nick C](https://wordpress.org/support/users/modernnerd/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/embed-code-18/#post-15676686)
 * Status: not resolved