From d19fd5a1cee4b5598507a1e4bfe5d2c67f7ab41b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 30 Jan 2012 10:22:23 -0600 Subject: [PATCH] added html::decode method. --- laravel/html.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/laravel/html.php b/laravel/html.php index 1256d5f3..76447310 100644 --- a/laravel/html.php +++ b/laravel/html.php @@ -15,6 +15,17 @@ public static function entities($value) 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. *