Freeware HTML Encode ActiveX Component

This is a simple and free ActiveX component for encoding and decoding HTML entities as described here. It can be used in ASP, VBScipt, Visual Basic, and any other programming language that supports ActiveX components.

Download Here

How to Use

Simply download the Zip distribution and unzip. Register the DLL using regsvr32.exe. The following sample VBScript is included in the download and demonstrates the functionality of this component:


' This VBScript example serves as the documentation for this free ActiveX component.
' To use the component, simply unzip the distribution package and register
' the DLL using regsvr32.

' HtmlEncode ActiveX creation:
set obj = CreateObject("HtmlEncode.HtmlEncode")

' The Decode method decodes all escape sequences listed here:
' http://www.w3schools.com/html/html_entitiesref.asp

' The Encode method encodes the ampersand '&', and angle bracket '<','>' characters only
' The EncodeAll method encodes all characters listed here:
' http://www.w3schools.com/html/html_entitiesref.asp

MsgBox obj.Decode("&amp; &lt; &gt; &eacute;")

' The é is not encoded, but the &, <, and > are converted.
MsgBox obj.Encode("& < > é")

' The é is also encoded here.
MsgBox obj.EncodeAll("& < > é")



About Tortuga

Tortuga Group LLC is in the business of building a new index for the World Wide Web at http://www.worldwideweb-x.com. The company has decided to make available some of its internally used ActiveX components to the general public. We hope you find them to be useful.

Printing-X.com : Printing Web Directory

Pad File


Copyright 2005 Tortuga Group LLC