In the RSS Feed Manager, if you have 'Convert HTML to BB Code' set to Yes, and in the Calendar Manager you have 'Allow HTML' set to No and 'Allow BB Code' set to Yes, you may notice that certain feeds post to the calendar with things like <font> and ’ showing on screen.
This is because vB could not make sense of the feed. For example, there is an unclosed font tag in the feed item, or no bbcode or regexp available to deal with an entity in the feed item. Thus, vB adds & to such things, both for your protection and to prevent page breakage.
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.