开发者

jquery tooltip ampersand problem

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜