PHP Class Prado\Web\THttpUtility

Since: 3.0
Author: Qiang Xue ([email protected])
Afficher le fichier Open project: pradosoft/prado Class Usage Examples

Méthodes publiques

Méthode Description
htmlDecode ( $s ) : string HTML-decodes a string.
htmlEncode ( $s ) : string HTML-encodes a string.
htmlStrip ( $s ) : string This method strips the following characters from a string: HTML entities: <, >, "

Method Details

htmlDecode() public static méthode

It is the inverse of {@link htmlEncode}.
public static htmlDecode ( $s ) : string
Résultat string decoded string

htmlEncode() public static méthode

This method translates the following characters to their corresponding HTML entities: <, >, " Note, unlike {@link htmlspecialchars}, & is not translated.
public static htmlEncode ( $s ) : string
Résultat string encoded string

htmlStrip() public static méthode

This method strips the following characters from a string: HTML entities: <, >, "
public static htmlStrip ( $s ) : string
Résultat string encoded string