I have dynamically generated HTML, for example:
const content = '<b>some <i>text</i><b>'
How can I get this content and remove last 2 letters, to get <b>some <i>te</i><b>
? I'm getting this content via el.innerHTML
. The main idea, I want to keep html how it is, and crop only text.