Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fapi_validation
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
fapi_validation
Commits
c5ea459e
Commit
c5ea459e
authored
11 years ago
by
Jesse Nicola
Browse files
Options
Downloads
Patches
Plain Diff
Fixing strip_tags filter, and covverting to html_entities
parent
47a10bbc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fapi_validation.module
+8
-8
8 additions, 8 deletions
fapi_validation.module
with
8 additions
and
8 deletions
fapi_validation.module
+
8
−
8
View file @
c5ea459e
...
...
@@ -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'
,
),
'html
specialchar
s'
=>
array
(
'callback'
=>
'fapi_validation_filter_html
specialchar
s'
,
'html
_entitie
s'
=>
array
(
'callback'
=>
'fapi_validation_filter_html
_entitie
s'
,
),
...
...
@@ -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_html
specialchar
s
(
$value
)
{
return
html
specialchars
(
$value
);
function
fapi_validation_filter_html
_entitie
s
(
$value
)
{
return
html
entities
(
html_entity_decode
(
$value
)
)
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment