Code in documentation appears to be incorrect

The example of code at appears to be incorrect.

I’m talking about the code at
To display HTML from a file, first load the file into a string:

It has an extra “end” at the bottom, and the first line Dim htmlFile As FolderItem("test.html")
gives me a syntax error, along with other errors later in the code

Can someone tell me what an example of code that doesn’t have errors is?
Thanks

Dim htmlFile as New FolderItem(“test.html”) and remove the that last End If…

huh - don’t see that here :stuck_out_tongue:

yeah I fixed it

It’s also complaining about the Try/Catch

try that

All better now. Thanks