What does the "html" plugin do?
- Keywords:
This plugin includes a variety of useful functions to manage strings, the following functions are included:
=======
//searches for $find in $string and replaces it for $repleace
$html->
//converts all characters of $string to lowercase
$html->
//converts all characters of $string to uppercase
$html->
//counts all the characters of $string (included spaces if second arg is true, default is false)
$html->
//escapes all characters of $string if they are $esctype (default "spechtml" using charset $char_set (default "UTF-8")
//possible $esctype: htmlall, spechtml, url, hex, mail, nonstd
$html->
//transforms to uppercase the first character of each word of $string, if second argument is true only the first word will be transformed
$html->
//returns a full formated string ready to be inserted in a template to include an image
possible parameters are:
// * - file = file (and path) of image (required)
// * - height = image height (optional, default actual height)
// * - width = image width (optional, default actual width)
// * - basedir = base directory for absolute paths, default is environment variable DOCUMENT_ROOT
// * - path_prefix = prefix for path output (optional, default empty)
$html->
//counts the number of sentences of $string
$html->
//indents $string with $chars_no (default is 4) times $character (default is ' ' /space/ )
$html->
=======