how to encode apostrophes for a webpage

i am using the cluetip plugin and the simple use case is to to put the content in a title attribute, like below:

Text

i am now running into issues where the string that is inside "detail content' has an apostrophe inside of it and it seems to confuse cluetip plugin. Is there anyway to escape or encode an apostrophe to allow cluetip to work properly.

7
задан leora 23 May 2011 в 02:23
поделиться