开发者

slight problem with fullcalendar when event has an apostrophe -- it disappears

I am using fullcalendar with a my开发者_StackOverflow中文版sql recordset and php. It works really well, but if an event has an apostrophe, the calendar does not appear.

Is there a quick and easy way to escape the apostrophe or strip it from the string automatically ?


Escape your apostrophe's with the backslash character '\':

$blah = 'nicklamort\'s answer';
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜