Fill in html editor

Set value in a HTML Editor (Rich-text editor)
The text probably needs to be escaped for regular expression usage?