Thanks Jeff, I have been able to whitelist iframes in the past but is not the behavior that I’m looking for.
I guess I’m bad at explaining. There is an example on this post:
In the end it should look like the codepen that I linked previously at the top of this topic when the data is generated.
The custom data attributes are already whitelisted by default with discourse and do not get removed from the div like id or class does.
My issue is, how can I make these external scripts execute and generate data inside these empty divs based on attributes? Based on these attributes, they could be different per topic or post and trigger the script to display different data that gets generated by these external scripts.
To summarize what I’m intending to do
External scripts placed on the admin > customize > theme “Edit CSS/HTML” section:
Input on the editor by a user or me:
Am I making sense? I apologize if I can’t explain myself well, as I’m bilingual and sometimes I tend to make things sound more complicated.