Is there a way to render html in CodeMirror textarea?

For example, i would like to set value of textarea to “-mark- Hello world! -/mark-”, and then click on button “render” to render this html inside of textarea, so only marked “Hello world!” remains. Is this possible in CodeMirror?
I’ve changed < to -, because it doesn’t show html
Thanks

You could write code that strips out the HTML and then only put the text into the editor, but no, CodeMirror itself won’t do this.