I'm trying to figure out js, I can't figure out how to output html, css and js code as text. Example:
document.write('<b>hello</b>') //на странице должно вывестись <b>hello</b> I'm trying to figure out js, I can't figure out how to output html, css and js code as text. Example:
document.write('<b>hello</b>') //на странице должно вывестись <b>hello</b> Source: https://ru.stackoverflow.com/questions/470814/
All Articles
document.body.textContent = '<b>hello</b>';- Deonis