HTML: <textarea>-Tag: How to correctly escape HTML and JavaScript content displayed in there?

前端 未结 2 1033
盖世英雄少女心
盖世英雄少女心 2020-12-11 14:47

I have a HTML Tag and the $FOO Variable will be filled with arbitrary HTML and JavaScript Content, to be disp

2条回答
  •  猫巷女王i
    2020-12-11 15:43

    I first tought of escaping it HTML

    Yes, that's right. The contents of a