开发者

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

开发者 https://www.devze.com 2023-02-09 15:01 出处:网络
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.

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

精彩评论

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