Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When the page's title contains special characters like single quote ("Company's Campaign"), the og:title
meta tag output by the module double-escapes those special characters, which makes the title appear as "Company's Campaign" on Facebook. The attached patch fixes this by HTML-decoding the page title received from drupal_get_title()
.
Comment | File | Size | Author |
---|---|---|---|
title-html-entities.patch | 555 bytes | jamix |
Comments
Comment #1
iSoLate CreditAttribution: iSoLate commentedTested it and it works.
Comment #2
iSoLate CreditAttribution: iSoLate commentedCode looks good too.
Comment #3
iSoLate CreditAttribution: iSoLate commentedDoesn't work with quotes.
Comment #4
iSoLate CreditAttribution: iSoLate commentedIt does work, never mind previous comment.
Comment #4.0
iSoLate CreditAttribution: iSoLate commentedGrammar fix.