fill-paragraph compatibility for html text