I am using FCKEditor in a bespoke CMS. The users are insistent on copy/pasting from Word, and won't use the built in Paste-from-Word feature. So I thought I could simply remove the <span> and <font> tags from the saved HTML before displaying it. I have been trying the strip_selected_tags() function at http://uk.php.net/strip-tags but this often seems to completely remove all traces of the article, rather than just removing the offending tags. I can only safely remove <font> tags, and hopefully <span> tags, and need to leave all other formatting. Any ideas?
why not do some form of reading in each line, then using str_replace to remove the tags? ugly though...
it looks like that's the basic idea behind the function on the above-linked page, but perhaps there's a bug in it. I'm hoping that someone here will have a brainwave, and think of another way to remove the nasty tags. PS - christmas av still?!