ASP HTMLEncode Method
❮ อ้างอิงวัตถุเซิร์ฟเวอร์ที่สมบูรณ์
วิธีการ 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>
❮ อ้างอิงวัตถุเซิร์ฟเวอร์ที่สมบูรณ์