Bugfix for html editor

Thanks to @wangqiang1208 for spotting the bug!

The bug was that only sub/sup/iframe tags work. bold italics etc tags are cleaned from the code.
Trailing whitespace.