WordPress.org

Ready to get started?Download WordPress

Forums

How to filter or prevent insertion of garbage characters (4 posts)

  1. converting2wp
    Member
    Posted 6 years ago #

    I'm running several WordPress installs where the content is maintained by others. I'm seeing garbage characters (circumflex capital A, in particular) come through in the RSS feeds or displayed in some posts.

    This happens when folks compose the post in a Windows application and then paste it into the WYSIWYG editor.

    I can look at the post content through phpMyAdmin and see that the character is there, but in most cases it does not appear in the displayed posts.

    Google found a post about a
    Moveable Type garbage character plugin
    , but I can't find a discussion in a WordPress context.

    Telling folks "don't do that" isn't a realistic option. Any advice on how to prevent the characters being inserted would be greatly appreciated -- or an explanation of what system characteristics can minimize the problem would also help. [The characters are showing up on the blog, not just the RSS feed (actually the e-mail message generated by RSSfwd.com), on a system with WP 2.1.2, MySQL 4.1.22-log and PHP 4.4.6-pl0-gentoo. On a copy of that installation on another server with MySQL 5.0.24a-standard-log and PHP 5.2.1. things look fine -- at least in Firefox 2 and IE7.]

    I may have some success suggesting an upgrade to the MySQL 4/PHP 4 administrators, and if a different WYSIWYG editor would do better with inserting posts crafted from Word, that's another possibility.

    Thanks in advance for any suggestions.

  2. Andrew Ozz
    WordPress Dev
    Posted 6 years ago #

    TinyMCE has a "Paste From Word" function that cleans winword created html. It is on the second button row (ALT + Shift + V). There's also "Paste as Plain Text" button there. I wonder if you can turn it on by default :)

  3. Chris_K
    Member
    Posted 6 years ago #

    This plugin:
    http://wordpress.org/extend/plugins/visualize-advanced-features/
    offers a button to easily show the paste as word or plain text buttons.

    Now, a clever sort could maybe enhance the plugin to always show the extra buttons.

  4. converting2wp
    Member
    Posted 6 years ago #

    Thanks to you both!

    I'd been using TinyMCE within WordPress since early last year, but never checked out enough of the documentation to find the Alt + Shift + V magic.

    The plugin works great and may be just what I need.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags