Encoding of data for various outputs
This is the code documentation for the SproutCMS project
Search documentation |
class EncEncoding of data for various outputs
Functions
public cleanfunkyunknown Enc::cleanfunky ( mixed $value ); Strip funky stuff from a string. Funky stuff is anything in the ASCII control plane (0x00 - 0x1F) Except tab, line feed, carriage return public htmlstring Enc::html ( string $value ); Encoding for HTML Existing HTML entities in a string will be double-encoded public htmlNoDupstring Enc::htmlNoDup ( string $value ); Encoding for HTML, but safe from double-encoding of existing entities public httpfieldunknown Enc::httpfield ( string $value ); Encoding for field name in a form element public idunknown Enc::id ( string $value ); Encoding for ID or CLASS attributes public jsunknown Enc::js ( string $value ); Encoding for going inside a JS string public jsdatenull|string Enc::jsdate ( string $value [, string $from ] ); Returns the JS code needed to initialise a Date() object with the specified date. This should only be used for dates. For times or date-times, use a different function. From types: 'mysql' - a mysql-formatted date in the form YYYY-MM-DD 'array' - an array [ <day> , <month> , <year> ] public urlunknown Enc::url ( string $value ); Encoding for a part of a URL (i.e. GET parameter value public urlnamestring Enc::urlname ( string $value [, mixed $delimiter ] ); Nice name of something when dealing with friendly URLs. This provides the backend for Slug::create public xmlunknown Enc::xml ( string $value ); Encoding for XML |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|