Decode HTML ❺
Decode a plain-text field containing HTML
Last updated
Decode a plain-text field containing HTML
Store HTML directly in CMS text fields, and render them in decoded form on the page.
Good for…
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.
wfu-decode attributeAdd 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.
First, add the library as detailed in Quick Start.
wfu-decode to the HTML Embed element you want to decodeSee above for details.
Last updated