Quote:
Originally Posted by calorie
To be rid of miscellaneous <font> and ’ type things, add a plugin at the calendar_getday_event hook with the following code:
Code:
// this replaces &whatever; with &whatever; in the calendar event
$eventinfo['event'] = preg_replace('/&(\S+);/iU', '&\1;', $eventinfo['event']);
// this removes <whatever> tags from showing in the calendar event
$eventinfo['event'] = preg_replace('/<.*>/iU', '', $eventinfo['event']);
Note that this code does not modify entries in the database table but instead affects what is shown on screen for the calendar event.
|
Would this same code or something similar work to fix the same problem from RSS feeds into regular posts.?