Commit d19fd5a1 authored by Taylor Otwell's avatar Taylor Otwell

added html::decode method.

parent 8ab33cf8
......@@ -15,6 +15,17 @@ class HTML {
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.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment