Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
HTML Entity DecodingVB.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)
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.