htmlEncode
public string htmlEncode |
(string $s ) |
HTML-encodes a string.
This method translates the following characters to their corresponding HTML entities: <, >, " Note, unlike htmlspeicalchars, & is not translated.
Input |
string | $s | string to be encoded |
Output |
string
| encoded string |
Exception |
|