Output HTML Tags In Gutenberg Block

I had a breakthrough shortly after posting the original question (isn’t that always the way?).

I reread this answer and realised what I needed to do to get the output rendered correctly.

  1. I created the const as described in the other answer.
const htmlToElem = ( html ) => wp.element.RawHTML( { children: html } );
  1. I tried adding the anonymous function to the content attribute but that just broke my JS and nothing would load.
  2. Instead I directly referenced the const and passed it the settings.description object. This loaded everything as expected.
content: htmlToElem(settings.description),

Screenshot of correct output

deneme bonusudeneme bonusu veren sitelerpulibet girişOnwin Güncel Giriştürkçe altyazılı pornocanlı bahis casino