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

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, January 21, 2012

Follow me on Twitter as @mattiasgeniar

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.

**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.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.