htmlOptions now is optional.