How to escape double quotes in a title attribute

后端 未结 8 2227
佛祖请我去吃肉
佛祖请我去吃肉 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:55

    The escape code " can also be used instead of ".

    0 讨论(0)
  • 2020-11-27 11:55

    You can use this PHP code to list special characters...

    <table border="1"><?php for($i=33;$i<9000;$i++)echo "<tr><td>&#38;#$i;<td>&#".$i.";"; ?></table>
    
    0 讨论(0)
提交回复
热议问题