Refactor: refactor htmlTag to allow flow typing of sanitizeText
Refactor: refactor htmlTag to allow flow typing of sanitizeText

Flow inference would complain with calling sanitizeText without
dereferencing the attribute first, so this refactor allows us
to seamlessly integrate a `sanitizeText` function with flow,
which we do in the next commit.

Khan/simple-markdown