I know this a repeat question, but I tried a lot of things and none of them worked. Essentially, I have:
var med = word.replace("!", '<br />');
(div.get(0)).textContent = med;
Side note: the div has a <p> inside of it and that is what I am changing. Thank you for any advice in advance!