encode() public static method
Encodes special characters into HTML entities. The application charset will be used for encoding. See also:
decode()
http://www.php.net/manual/en/function.htmlspecialchars.php
public static string encode ( $content, $doubleEncode = true )$content string
The content to be encoded $doubleEncode boolean
Whether to encode HTML entities in $content. If false, HTML entities in $content will not be further encoded. return string
The encoded content