I’ve just released an open source Xojo module for encoding/decoding HTML entities. It’s inspired by the HTMLEntities module originally created by Thom McGrath. It’s been completely rewritten to use faster Dictionaries and I ’ve migrated as much of the code as is currently possible to the new Xojo framework. Annoyingly, because Xojo still have not implemented a RegEx engine into the new framework, it doesn’t work on iOS.

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 = "

Copyright © 2016

" dim encoded as Text = raw.EncodeEntities()

Feedback is always welcome.