I want to apply text "<b>H</b>ell<b>o</b>"
to the paragraph with id="predogled" using javascript, so the output will be Hello.
I tried with this:
<script>
function formattext(){
document.getElementById('predogled').innerText="<b>H</b>ell<b>o</b>";
}
</script>
<p id="predogled"></p>
<button type="button" onclick="formattext()">Format!</button>
But this code literally print "<b>H</b>ell<b>o</b>"
and the characters are not bold as I want.