Decode HTML ❺
Decode a plain-text field containing HTML
Store HTML directly in CMS text fields, and render them in decoded form on the page.
- 3rd party embeds like SoundCloud, and YouTube
- JSON+LD embeds
Create an HTML Embed or plain-text element on your page, data-bound to the CMS if you like.
Add this to the HTML Embed element you want the contents decoded for. No value needed.
Note that the CSS will hide this element initially until after it’s decoded, at which point we make it visible.
See above for details.