allow to set isHTML when constructing for convenience