Commit cf604d4e authored by Taylor Otwell's avatar Taylor Otwell

Merge pull request #689 from crlosmify/html

Method for HTML special characters
parents 4bb2e5f6 e057193d
...@@ -45,6 +45,19 @@ class HTML { ...@@ -45,6 +45,19 @@ class HTML {
return html_entity_decode($value, ENT_QUOTES, Config::get('application.encoding')); return html_entity_decode($value, ENT_QUOTES, Config::get('application.encoding'));
} }
/**
* Convert HTML special characters.
*
* The encoding specified in the application configuration file will be used.
*
* @param string $value
* @return string
*/
public static function specialchars($value)
{
return htmlspecialchars($value, ENT_QUOTES, Config::get('application.encoding'), false);
}
/** /**
* Generate a link to a JavaScript file. * 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