Inline Regexp.union, like upstream.
Added option to treat text in tags like smart text.
Document the smart_text_in_tags option.