Skip to content
Snippets Groups Projects
Commit c5ea459e authored by Jesse Nicola's avatar Jesse Nicola
Browse files

Fixing strip_tags filter, and covverting to html_entities

parent 47a10bbc
Branches
Tags
No related merge requests found
......@@ -223,11 +223,11 @@ function fapi_validation_fapi_validation_filters() {
'lowercase' => array(
'callback' => 'fapi_validation_filter_lowercase',
),
'striptags' => array(
'callback' => 'fapi_validation_filter_striptags',
'strip_tags' => array(
'callback' => 'fapi_validation_filter_strip_tags',
),
'htmlspecialchars' => array(
'callback' => 'fapi_validation_filter_htmlspecialchars',
'html_entities' => array(
'callback' => 'fapi_validation_filter_html_entities',
),
......@@ -349,10 +349,10 @@ function fapi_validation_filter_lowercase($value) {
return mb_strtolower($value);
}
function fapi_validation_filter_striptags($value) {
return striptags($value);
function fapi_validation_filter_strip_tags($value) {
return strip_tags($value);
}
function fapi_validation_filter_htmlspecialchars($value) {
return htmlspecialchars($value);
function fapi_validation_filter_html_entities($value) {
return htmlentities(html_entity_decode($value));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment