const generateHtml = () => {
let html = ''
html += '<p>Hello, world!</p>' // usually a lot of weird logic like dynamic table building here, this is just a short example
return html
}
const rawHtml = generateHtml()
htm`${rawHtml}` // does not do what is expected
Example: