support html for fragment. Fixes #396