does <textarea> auto-encode inner html?

后端 未结 2 460
失恋的感觉
失恋的感觉 2021-01-18 05:45

I was trying to print some text between tags, but I\'ve noticed that if I input some characters like &

2条回答
  •  佛祖请我去吃肉
    2021-01-18 06:27

    The dom element should have properties like this:

    innerHTML = '<script>'
    
    innerText = '
    
                                     
                  
提交回复
热议问题