• Resolved pixelcrash

    (@pixelcrash)


    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

    (@blobfolio)

    Hi @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 7 months, 3 weeks ago by Blobfolio.
    • This reply was modified 7 months, 3 weeks ago by Blobfolio. Reason: Gutenberg is breaking the formatting. Haha
    • This reply was modified 7 months, 3 weeks ago by Blobfolio. Reason: Gutenberg fail. Haha
    Thread Starter pixelcrash

    (@pixelcrash)

    Thanks a lot!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML in data array()’ is closed to new replies.