You can just do `${content.textContent|encodeForHTMLWithLinks}`