TX Text Control's HTML export filter has been improved significantly in version 15.0. Not only does it create 100% valid XHTML by default, but now images can also be embedded in the code.

In previous versions, the original reference to the images could be exported or images could be exported separately in a sub-folder. Newer browsers (Firefox 3.0, Google Chrome or Internet Explorer 8.0) support embedded images in the img tag itself. The exported image tag looks like this:

<img src="data:image/png;base64,
khoXe0rZigAAAABJRU5ErkJggg==" alt="" />

The image data can be embedded as JPG or PNG and it is base-64-encrypted.

To get TX Text Control to embed images in the resulting HTML, the Image.SaveMode property must be set to SaveAsData.

Now, HTML documents can be saved like an RTF or MS Word document including images in one file which was often a requirement from you, our users. Feel free to post your comments on this.