Sample code for 30+ languages & platforms
Classic ASP

StringBuilder EntityDecode

Demonstrates the Chilkat StringBuilder EntityDecode method to decode HTML entities.

Chilkat Classic ASP Downloads

Classic ASP
<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 = "&eacute; &#233; &#xE9; 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>