How to handle html tags in template strings

There is an input input box in the

page. If the other party enters < H2 > Hello < / H2 > , it will be automatically converted to large bold text.
how to output strings directly from p.content without parsing H2 tags into large bold?

${value}

`;

the above code parses the HTML tag into the default style. How can the template string achieve the same effect as textContent or innerText ?

Mar.01,2021

just escape the beginning and end of the tag in the string as follows:

  

find the rich text plug-in

Menu