Nesting quotes in JavaScript/HTML

后端 未结 4 798
青春惊慌失措
青春惊慌失措 2020-11-27 19:11

How do you nest quotes in HTML beyond the second level? As far as I know, there are only 2 types of quotes - single(\') and double(\"). I am aware of escaping using slashes

4条回答
  •  执念已碎
    2020-11-27 20:04

    you need to escape the characters using the \

    so your code should look like

    ');">Some Text

    Here is some info on Special Characters

提交回复
热议问题