As silly as it may sound, I still haven\'t found an appropriate answer.
Let\'s say I want to dynamically create a new DOM element and fill up its textContent/innerTe
Use element.innerHTML="some \\\\n some";.
element.innerHTML="some \\\\n some";