make lose-tags + keep-attrs in stripHTML parametric