• Would it be possible for you to trim the output for the description tags?

    As of now, my description looks like this in source:

    <meta property="og:description" content="Posting
    
    When posting a new topic, follow these steps:
    
    Step 1) ..."/>

    It would look cleaner like :

    <meta property="og:description" content="Posting When posting a new topic, follow these steps: Step 1) ..."/>

    A simple str_replace will do the trick.

    # Convert carriage returns to spaces
    $description = str_replace(array("\r", "\n"), ' ', $description);
  • The topic ‘Trim description tags output’ is closed to new replies.