I have
<div class="test">hello everyone</div>
and I want to change each hello in this div with
<h1>helllo</h1>
for example I've used
$(this).text().replace("hello", "<h1>hello<h1>");
but it outputs
<h1>hello</h1>
I want it apply as HTML not as text how can I do it?
hello
"));` – trincot Jan 06 '19 at 19:27