Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1102 from Gerrit0/Fix-#1046
Browse files Browse the repository at this point in the history
Fix for #1046 (Custom JS is being escaped)
  • Loading branch information
CraigChilds94 committed Feb 19, 2017
2 parents 1bd275f + 7cc618c commit aefb7d1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions anchor/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ function parse($str, $markdown = true)
$str = str_replace($search, $replace, $str);
}

$str = html_entity_decode($str, ENT_NOQUOTES, System\Config::app('encoding'));

// Parse Markdown as well?
if ($markdown === true) {
$md = new Parsedown;
Expand Down
8 changes: 1 addition & 7 deletions system/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,7 @@ public static function get($key, $fallback = null)
return static::get_array($key, $fallback);
}

$data = Arr::get(static::$array, $key, $fallback);

if (is_string($data)) {
return e($data);
}

return $data;
return Arr::get(static::$array, $key, $fallback);
}

/**
Expand Down

0 comments on commit aefb7d1

Please sign in to comment.