WordPress breaks Copy-Paste

Ran into this problem when I was reapplying my WordPress Hack. Didn’t think much of it until I read Alex’s post on it.

In short the problem is that WordPress automatically converts quotes in your post to “smart” quotes.
Normally this wouldn’t be a problem for you. But it will for someone who wants to copy and paste the content from your blog to their site.

This becomes more severe when the content they are copy-pasting is code (as in the case of my hack). I noticed my blog giving javascript errors. I was able figure out the problem only when I pasted it in Notepad and found weird looking quotes.

You can use Alex’s WP Unformatted plugin to disable Smart Quotes on a post wise basis.

I guess a good thing to do would be to put code in a seperate text file and provide a link to it.

As for smart quotes, I guess it is wait and watch as of now.

Share this post with your friends!

One comment

Comments are closed.

Get more stuff like this
in your inbox

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.