Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
HTML Entity DecodingDownload: Chilkat .NET Assemblies VB.NET example source code to decode HTML entities. ' HtmlDecode sample program
' Decode HTML entities to Unicode characters.
Dim cset As New Chilkat.Charset()
' Unlock once at the beginning of a program.
cset.UnlockComponent("anything for 30-day trial")
Dim eStr1 As String
eStr1 = "Cent Sign: ¢ Pound Sign: £"
' NOTE: Numeric references in the 0-255 range are assumed to be iso-8859-1 character references.
' Numeric references greater than (decimal) 255 are assumed to be Unicode references.
Dim eStr2 As String
eStr2 = "Latin capital letter A with acute: Á Á Á"
Dim eStr3 As String
eStr3 = "Examples of numeric character references include © or © for the copyright symbol, Γ or Γ for the Greek capital letter gamma, and ذ or ذ for the Arabic letter THAL."
TextBox1.Text = cset.HtmlEntityDecode(eStr1)
TextBox2.Text = cset.HtmlEntityDecode(eStr2)
TextBox3.Text = cset.HtmlEntityDecode(eStr3)
|
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.