I've searched all over & there doesn't seem to be any good answers anywhere so i am wondering what everyone does..?
Do you all just edit each post, or is the answer out there, but hard to find.?
To fix this issue:
’ = '
“ = "
” = "
• =
Taken from 3.6 thread..
Quote:
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.?
|