Decode Social Media Embed in Textblock

Hi there!

I just added the decode solution to my site and was curious if anyone had any thoughts about my use case. What I’m trying to achieve is to decode a textblock that contains embed code for a tiktok, intsagram or twitter post. When I place the code in an HTML embed it works fine and the video plays. When I insert the code into the textblock and add the decode attributes it decodes it partially and the video doesn’t show at all. If you have any suggestions let me know. And for anyone wondering why I just don’t place it inside a rich text field embed or regular embed, I have plans to integrate it with a more complex solution that requires text blocks but I know its a strange use case. The following is the difference between the embed and the decode textblock solution.


image

The following is an example for the code embed I want to place:

<blockquote class="tiktok-embed" cite="https://www.tiktok.com/@surthycooks/video/7262492539192675590" data-video-id="7262492539192675590" style="max-width: 605px;min-width: 325px;" > <section> <a target="_blank" title="@surthycooks" href="https://www.tiktok.com/@surthycooks?refer=embed">@surthycooks</a> <p>🫣 </p> <a target="_blank" title="♬ LALA - Myke Towers" href="https://www.tiktok.com/music/LALA-7212832308926089218?refer=embed">♬ LALA - Myke Towers</a> </section> </blockquote> <script async src="https://www.tiktok.com/embed.js"></script>