Thursday, September 4, 2014

Smart Quotes

But smart quotes? What's the deal with smart quotes?
Smart quotes are when quotation marks look one way at the beginning and another at the end, or when they go at an angle instead of straight down.
"These are straight quotes" 
They look the same at the beginning and the end.
“These are smart quotes.
See how they're curvy?

If you use smart quotes in your code, bad things happen. Because smart quotes aren’t recognized as quotes.
So instead of this: rel="nofollow"
You get this: rel="”nofollow”"

The code added an extra set of quotes because it didn't detect a set of quotes there. But it also has no idea what ”nofollow” means so it doesn't work.

No comments:

Post a Comment