Display string with HTML

Hello people,

I have a string with HTML code in it and I want to show it (parsed) in a Text Area or HTML Viewer or what ever is needed for this, but I can’t get it to work.

As far as I found in the documentation the HTML Viewer should be able to accept and display strings other then loading it from the web or local file, but I don’t see any method for this.

The Text Area displays the text from the string, but the html code is not parsed.

Please help me out, guys.

Thanks,
Peter.

If you have a string, s, with html in it, and a HTMLViewer named HTMLViewer1, you can call

HTMLViewer1.LoadPage(s, nil)

Thanks Tim, you really help me out.