This is an old revision of the document!
This page is a work in progress.
Signature
cl($data)
Description
Cleans $data
consecutively with html_entity_decode, strip_tags and strip_slashes
Parameters
$data
, the data string to cleanSignature
tsl($path)
Description
Adds a trailing slash to $path
if there isn't one yet.
Parameters
$path
, the path to add a trailing slash to.Signature
strip_quotes($text)
Description
Strips HTML entity quotes, double and single quotes from $text
and returns the result.
Parameters
$text
, the string to strip quotes fromSignature
encode_quotes($text)
Description
Encodes quotes as HTML entities with htmlspecialchars
and trims whitespace in $text
.
Parameters
$text
, the text to encode quotes in.