Post Excerpt as Meta Description

  • Hi,

    Is there a way to add the blog post except as the meta description in the <head>. I've tried using the Open Graph tags but to no avail.

    1. <meta name="description" content="<?php perch_blog_post_field(perch_get('s'), 'excerpt'); ?>" />

    This outputs the excerpt but includes the <p> tags around it.

    Thanks in advance.