एएसपी एचटीएमएलएनकोड विधि
❮ पूरा सर्वर वस्तु संदर्भ
HTMLEncode विधि HTML एन्कोडिंग को एक निर्दिष्ट स्ट्रिंग पर लागू करती है।
वाक्य - विन्यास
Server.HTMLEncode(string)
Parameter | Description |
---|---|
string | Required. The string to encode |
उदाहरण
The following script:
<%
response.write(Server.HTMLEncode("The image tag: <img>"))
%>
Output:
The image tag: <img>
Web browser output:
The image tag: <img>
❮ पूरा सर्वर वस्तु संदर्भ