Add htmlOnly argument back-in to maintain compatibility for up-stream PR.