Title: HTML in data array()
Last modified: July 19, 2024

---

# HTML in data array()

 *  Resolved [pixelcrash](https://wordpress.org/support/users/pixelcrash/)
 * (@pixelcrash)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-in-data-array/)
 * Hi – is there a chance of passing html code into $data[ ‘htmlcontent’ => $wysiwyg];
   
   Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Blobfolio](https://wordpress.org/support/users/blobfolio/)
 * (@blobfolio)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-in-data-array/#post-17900317)
 * Hi [@pixelcrash](https://wordpress.org/support/users/pixelcrash/) ,
 * The data array can contain any JSON-able content, including HTML.
 * On the template side, use triple curly brackets instead of pairs to render the
   HTML within.
 * For some reason Gutenberg is removing all the braces when I try to give you an
   example with three, so just imagine`{{htmlcontent}}` with an extra `{` and `}`
   on either end. Haha.
 * Note that I accidentally introduced entity encoding issues in the last release
   while trying to replace a deprecated PHP method. That should be fixed in `2.4.4`.
    -  This reply was modified 1 year, 10 months ago by [Blobfolio](https://wordpress.org/support/users/blobfolio/).
    -  This reply was modified 1 year, 10 months ago by [Blobfolio](https://wordpress.org/support/users/blobfolio/).
      Reason: Gutenberg is breaking the formatting. Haha
    -  This reply was modified 1 year, 10 months ago by [Blobfolio](https://wordpress.org/support/users/blobfolio/).
      Reason: Gutenberg fail. Haha
 *  Thread Starter [pixelcrash](https://wordpress.org/support/users/pixelcrash/)
 * (@pixelcrash)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/html-in-data-array/#post-17901063)
 * Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML in data array()’ is closed to new replies.

 * ![](https://ps.w.org/well-handled/assets/icon-256x256.png?rev=2889647)
 * [Well-Handled Email Templates](https://wordpress.org/plugins/well-handled/)
 * [Support Threads](https://wordpress.org/support/plugin/well-handled/)
 * [Active Topics](https://wordpress.org/support/plugin/well-handled/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/well-handled/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/well-handled/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pixelcrash](https://wordpress.org/support/users/pixelcrash/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/html-in-data-array/#post-17901063)
 * Status: resolved