How to escape double quotes in a title attribute

后端 未结 8 2486
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-27 11:28

I am trying to use a string that contains double quotes in the title attribute of an anchor. So far I tried these:



        
8条回答
  •  广开言路
    2020-11-27 11:54

    Using " is the way to do it. I tried your second code snippet, and it works in both Firefox and Internet Explorer.

提交回复
热议问题