diff --git a/src/Helper/HeadScript.php b/src/Helper/HeadScript.php index 08526085..45cbeb64 100644 --- a/src/Helper/HeadScript.php +++ b/src/Helper/HeadScript.php @@ -408,8 +408,7 @@ public function itemToString($item, $indent, $escapeStart, $escapeEnd) $attrString = ''; if (!empty($item->attributes)) { foreach ($item->attributes as $key => $value) { - if ((!$this->arbitraryAttributesAllowed() - && !in_array($key, $this->_optionalAttributes)) + if ((!$this->arbitraryAttributesAllowed() && !in_array($key, $this->_optionalAttributes)) || in_array($key, array('conditional', 'noescape'))) { continue;