Dollar sign in event description interpreted as PHP variable
-
If a dollar sign ($) is included in the event description then it doesn’t display properly on the event hover when the calendar is inserted via the shortcode on a page or post. The $ is interpreted as a PHP variable as per this post.
To fix this I changed line 2325 of the plugin to replace ‘$’ with ‘/$’ after stripslashes.
$details = '<span class="calnk"><a href="'.$linky.'" '.$style.'>' . stripslashes($event->event_title) . '<span '.$style.'>' . $header_details . '' . str_replace('$','\$',stripslashes($event->event_desc)) . '</span></a></span>';
PS – Great plugin!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Dollar sign in event description interpreted as PHP variable’ is closed to new replies.