Is there a way to convert HTML text to plain text in JS WITHOUT IMPORTING OR USING 'NPM INSTALL'. I am trying to, for example, put: <h1>Hello</h1>
as <h1>Hello</h1>
without it autocorrecting to
'Hello'.
Is this possible? Even if it can put it in blockquotes or multiple line blockquotes like
<h1>Hello</h1>
<h2>Hi</h2>
How do I do this does anyone know?
I would also be fine with figuring out how StackOverflow creates their blockquotes like:
<h2>Hello</h2>
Can someone help please!
Hello
'; document.body.appendChildcode);` you will see the HTML code. – Martin Honnen Jul 12 '21 at 07:38