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
?