Xojo module for encoding/decoding HTML entities
Xojo
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
App.xojo_code
Build Automation.xojo_code
HTMLEncode.xojo_code
HTMLEncode.xojo_project
HTMLEncode.xojo_resources
MainMenuBar.xojo_menu
README.md
WinMain.xojo_window

README.md

HTMLEncode

A Xojo module for encoding/decoding HTML entities

Inspired by the HTMLEntities module originally created by Thom McGrath. Rewritten to use faster Dictionaries and I have migrated as much of the code as is currently possible to the new Xojo framework.

About

Certain characters need to be encoded if they are to be displayed in a HTML document. These are known as HTML entities. This module will convert these characters into their respective HTML symbols and back again.

Usage

using HTMLEncode

dim raw as Text = "<p>Copyright © 2016</p>"
dim encoded as Text = raw.EncodeEntities()

' result is:
' &lt;p&gt;Copyright &copy; 2016&lt;/p&gt;