mirror of
https://github.com/getgrav/grav.git
synced 2026-02-22 14:38:13 +01:00
Fix for inline JS and HTML entities #376
This commit is contained in:
@@ -421,7 +421,7 @@ class Assets
|
||||
public function addInlineJs($asset, $priority = null, $group = null)
|
||||
{
|
||||
if (is_a($asset, 'Twig_Markup')) {
|
||||
$asset = strip_tags((string)$asset);
|
||||
$asset = html_entity_decode(strip_tags((string) $asset));
|
||||
}
|
||||
|
||||
$data = [
|
||||
|
||||
Reference in New Issue
Block a user