我试图在一个锚点标签的 title 属性中使用包含双引号的字符串。到目前为止,我尝试了以下方法:
<a href=".." title="Some \"text\"">Some text</a>
<!-- The title looks like `Some \` --!>
以及
<a href=".." title="Some "text"">Some text</a>
<!-- The title looks like `Some ` --!>
请注意,使用单引号不是一个选项。