Support » Plugin: WP-PostRatings » No escape quotes

  • Hi, my excerpt contains quotes so in meta itemprop=description brokes =/

    I resolve this adding esc_attr() to post attributes used in google rich snippets, line 1245:
    $post_meta = '<meta itemprop="name" content="'.esc_attr($post_title).'"><meta itemprop="description" content="'.esc_attr($post_excerpt).'"><meta itemprop="url" content="'.esc_attr($post_link).'">';

    and remove function htmlspecialchars_decode in line 1259:
    return apply_filters('expand_ratings_template', $value);

    You could also add a strip_tags to =)

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘No escape quotes’ is closed to new replies.