开发者

jquery tooltip ampersand problem

开发者 https://www.devze.com 2023-03-24 02:09 出处:网络
Please, help开发者_JS百科 me to escape ampersand in the tooltips. When I have <a title = \"M & M\"> then it works fine, but if there is no spaces between the words and \'&\' (e.g. \"M&am

Please, help开发者_JS百科 me to escape ampersand in the tooltips. When I have <a title = "M & M"> then it works fine, but if there is no spaces between the words and '&' (e.g. "M&M") then it fails and only first part ("M") is shown in the tooltip. The problem is actual for IE only.


Try to use the entity &amp; instead of the raw &.

  • http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号