WordPress plugin: undo the default WordPress formatting (single/double quotes/dashes)

Mattias Geniar, Saturday, January 21, 2012

I've been cursing at this quite often. Since this is a tech-related blog with code snippets, command line arguments, ... running it on wordpress means that it always results in having characters replaced by the WordPress default formatting. In the end, that means that a single quote ' or a double quote " would always get replaced by a better-looking HTML character. That made copy/pasting from this blog to a terminal near impossible.

Previously, I would just hack the WordPress core (for WordPress 3.3 and 3.2 or 3.1) by editting some files. But any update would of course undo my change, since hacking the core of anything makes kittens cry.

Therefore it was time to create a solid fix, one that would last through the different updates. So I present to you, my Undo WordPress Default Formatting plugin for WordPress!

It's a very simple thing but I'm sure it applies to a lot of techblogs out there running on WordPress.

Download directly: undo_wordpress_default_formatting.tar.gz
Plugin page at WordPress: http://wordpress.org/extend/plugins/undo-wordpress-default-formatting/

I'll keep the subversion repository up-to-date, so feel free to report any findings via the page at wordpress.org.

Hi! My name is Mattias Geniar. 👋 I'm an independent software developer ⌨️ & Linux sysadmin 👨‍💻, a general web geek & public speaker. Currently working on DNS Spy & Oh Dear! Follow me on Twitter as @mattiasgeniar 🐦.

🔥 If you're stuck with a technical problem, I'm available for hire to help you fix it!

Share this post

Did you like this post? Help me share it on social media! Thanks. 🤗

Have feedback?

New comments have been disabled on this blog, existing comments will remain as-is. Want to give feedback? Is there a mistake in the post?

Send me a tweet on @mattiasgeniar!