Méthode ASP HTMLEncode


❮ Référence complète de l'objet serveur

La méthode HTMLEncode applique le codage HTML à une chaîne spécifiée.

Syntaxe

Server.HTMLEncode(string)

Parameter Description
string Required. The string to encode

Exemple

The following script:

<%
response.write(Server.HTMLEncode("The image tag: <img>"))
%>

Output:

The image tag: &lt;img&gt;

Web browser output:

The image tag: <img>

❮ Référence complète de l'objet serveur