added html::decode method.
This commit is contained in:
parent
8ab33cf8c8
commit
d19fd5a1ce
|
@ -15,6 +15,17 @@ public static function entities($value)
|
||||||
return htmlentities($value, ENT_QUOTES, Config::get('application.encoding'), false);
|
return htmlentities($value, ENT_QUOTES, Config::get('application.encoding'), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert entities to HTML characters.
|
||||||
|
*
|
||||||
|
* @param string $value
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function decode($value)
|
||||||
|
{
|
||||||
|
return html_entity_decode($value, ENT_QUOTES, Config::get('application.encoding'));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate a link to a JavaScript file.
|
* Generate a link to a JavaScript file.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue