Classic ASP
Classic ASP
StringBuilder EntityDecode
Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
' Decode the following HTML entities, replacing each with the character represented.
s = "é é é Latin small letter e with acute"
set sb = Server.CreateObject("Chilkat.StringBuilder")
success = sb.Append(s)
success = sb.EntityDecode()
' Output: é é é Latin small letter e with acute
Response.Write "<pre>" & Server.HTMLEncode( sb.GetAsString()) & "</pre>"
%>
</body>
</html>