I am making a terminal app in javascript. But the problem is that I can't use innerHTML method. I tried using innerText method, but it doesnt apply multi space and & nbsp; is also ignore. For example:
example.innerText = "a b"; //output is not 'a b'
I would be glab if someone could help me.