SetSource of a BrowserFrame

Hi,
I need to set a source for a BrowserFrame, which will be an html String.
What is the best way to do this? Should I convert the String to a Stream and set the source as a StreamResource?

Thanks!