I have a database variable from which I get this, for example:
hello, `<br />` have a good day,
It prints the <br />
to my screen. How could I tell html that
is a line break?
My variable is called greeting
and it is an array from which I use a for to print everything, but I used that little text as an example.
So I tried with innerHTML but it doesn't work:
<i id="break" class="textTitle">{{ greeting }}</i>
<script>
document.getElementById("break").innerHTML = "<br/>";
</script>