Reputation: 15
I'm using drupal 7 to build a website, and when I see the source code of my pages, the apostrophes are substituted by &039 and & by &. How can I prevent this from happening?
Upvotes: 0
Views: 4619
Reputation: 1
Place your cursor in the position where you want the apostrophe. Hold down 'alt' key, type 0180, then release the 'alt key'.
Upvotes: 0
Reputation: 36955
This is totally correct, the ampersand and apostrophe symbols (along with many others) are reserved characters in HTML and cannot be used directly in the code without first being 'escaped'. The W3C page on HTML entities explains it in very good detail.
Don't worry, Google is smart enough to know this and when it 'reads' your text it will substitute the correct symbols in; your text will show correctly in search engine results :)
Upvotes: 1