Add recursion to removeHtmlAttribute

This is pretty straightforward because the htmlAttributes data
structure is so simple...

Change-Id: Ie46fcc0715c4aecb984e73dc81a5297673f2c3ea
(cherry picked from commit ba2636c7873d873728b05d391337725e5ce94af6)