System:Security:dbescape
From Aspen Documentation
Handles escaping data for entry into the database.
Since 1.0
Contents |
Arguments
mixed dbescape (mixed $data, [boolean $allow_html = false])
- data
- A string or array.
- allow_html
- Whether or not to remove html. By default, all html tags are removed.
Notes
- If html is allowed, it's passed through the Html->purify function.
- This function automatically passes values through the clean_slashes function.