Changeset 32164 for extensions


Ignore:
Timestamp:
May 3, 2020, 8:24:51 AM (5 years ago)
Author:
ddtddt
Message:

[Meta_OG]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/meta_og/main.inc.php

    r32133 r32164  
    188188    // og:title
    189189  if (!empty($metaog['metaogtitle'])) {
    190     $template->append('head_elements', '<meta property="og:title" content="' . trigger_change('AP_render_content', $metaog['metaogtitle']) . '">');
     190    $template->append('head_elements', '<meta property="og:title" content="' . strip_tags(trigger_change('AP_render_content', $metaog['metaogtitle'])) . '">');
    191191  }
    192192 
    193193    // og:description
    194194  if (!empty($metaog['metaogdescription'])) {
    195     $template->append('head_elements', '<meta property="og:description" content="' . trigger_change('AP_render_content', $metaog['metaogdescription']) . '">');
     195    $template->append('head_elements', '<meta property="og:description" content="' . strip_tags(trigger_change('AP_render_content', $metaog['metaogdescription'])) . '">');
    196196  }
    197197 
Note: See TracChangeset for help on using the changeset viewer.