@Manuel Hi Manuel, thank you for reaching out. The only way that I was able to get this to work is by replacing the opening and closing HTML tags with HTML entities as shown below:
var value = `<h2 id="my-section-1">Section 1</h2>
<div>bla bla bla</div>`
return value.replace(/</g, '<').replace(/>/g, '>');