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.
Use Cases
Good for…
3rd party embeds like SoundCloud, and YouTube
JSON+LD embeds
Usage Notes
Create an HTML Embed or plain-text element on your page, data-bound to the CMS if you like.
wfu-decode
attribute
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.
Getting Started ( NOCODE )
STEP 1 - Add the Library
First, add the library as detailed in Quick Start.
STEP 2 - Apply wfu-decode
to the HTML Embed element you want to decode
wfu-decode
to the HTML Embed element you want to decodeSee above for details.
Last updated