Support » Plugin: Facebook Thumb Fixer » Double quotes are not escaped in og tags

  • Resolved PhilHilton

    (@philhilton)


    If your page excerpt has double quotes in it they are not properly escaped in the property=”og:description” or itemprop=”description” tags. This causes FB to cut the excerpt short.

    Similar plugins replace them with " (or more generally probably use one of the built in escaping functions) to get around this.

    Example html output below.

    I’ve advised a client to avoid using double quotes in their excerpts for now. Is there an expected fix for this?

    Peace,
    Phil

    <!–/ Facebook Thumb Fixer Open Graph /–>
    <meta property=”og:type” content=”article” />
    <meta property=”og:url” content=”http://not.important.net/page” />
    <meta property=”og:title” content=”FB Thumb Fixer Test” />
    <meta property=”og:description” content=”This is some test “content” for the except.” />
    <meta property=”og:site_name” content=”Not Important” />
    <meta property=”og:image” content=”” />

    <meta itemscope itemtype=”article” />
    <meta itemprop=”description” content=”This is some test “content” for the except.” />
    <meta itemprop=”image” content=”” />

    • This topic was modified 9 months, 1 week ago by  PhilHilton.
    • This topic was modified 9 months, 1 week ago by  PhilHilton.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.