Commit 37dbb06c authored by git's avatar git Committed by Kingdutch

Issue #2876004 by Koen.Pasman, marco-s: Description metatags using tokens do not get sanitized

parent 52cb19ed
......@@ -158,7 +158,7 @@ function yoast_seo_configuration_form(array &$form, $instance, array $options =
$form['metatags'][$langcode]['basic']['description']['value']['#default_value'] = $metatag_config['description']['value'];
}
else {
$form['metatags'][$langcode]['basic']['description']['value']['#default_value'] = token_replace($metatag_config['description']['value'], array('node' => $form['#entity']));
$form['metatags'][$langcode]['basic']['description']['value']['#default_value'] = strip_tags(token_replace($metatag_config['description']['value'], array('node' => $form['#entity'])));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment