|
|
@@ -568,7 +568,8 @@ class HtmlHelper extends Helper
|
|
|
*
|
|
|
* ### Options
|
|
|
*
|
|
|
- * - `safe` (boolean) Whether or not the $script should be wrapped in `<![CDATA[ ]]>`
|
|
|
+ * - `safe` (boolean) Whether or not the $script should be wrapped in `<![CDATA[ ]]>`.
|
|
|
+ * Defaults to `false`.
|
|
|
* - `block` Set to true to append output to view block "script" or provide
|
|
|
* custom block name.
|
|
|
*
|
|
|
@@ -580,7 +581,7 @@ class HtmlHelper extends Helper
|
|
|
*/
|
|
|
public function scriptBlock($script, array $options = [])
|
|
|
{
|
|
|
- $options += ['safe' => true, 'block' => null];
|
|
|
+ $options += ['safe' => false, 'block' => null];
|
|
|
if ($options['safe']) {
|
|
|
$script = "\n" . '//<![CDATA[' . "\n" . $script . "\n" . '//]]>' . "\n";
|
|
|
}
|