Don't count inline tags as words

Thus, for "<h1>Foo <a href='#'>bar baz</a></h1>", the h1 tag has for the
purposes of the matching regexp three words.