static public $msgshow_externalimages = false;
static public $msgshow_hasextimages = false;
static public $msgshow_withthread = true;
+ static public $msgshow_javascript = true;
/** Match an url
* Should be included in a regexp delimited using /, !, , or @ (eg: "/$url_regexp/ui")
*/
public function makeJs($src)
{
+ if (!Banana::$msgshow_javascript) {
+ return '';
+ }
if (function_exists('hook_makeJs')
&& $res = hook_makeJs($src)) {
return $res;
\r
function banana_entities($source)\r
{\r
- if (is_string($source) || is_numeric($source)) {\r
+ if (is_string($source)) {\r
return banana_htmlentities($source);\r
} else {\r
return $source;\r