I need help finding a method on how to replace html txt in my renderHTML function.
I am using currently using insertAdjacentHTML(‘beforeend’, htmlAuthorString); method and it is appending the string after the previous one and that’s incorrect.
I tried .replaceWith method and it replaced successfully once. then it got stuck… and quit working.
I tried .remove prior to insertAdjacentHTML but it removed the whole thing. It doesnt even append afterwards.
My source code:
Use el.innerHTML = ‘stuff to be parsed’
Thank you. it works .
quoteMessage.innerHTML = htmlQuoteString;
authorName.innerHTML = htmlAuthorString;