Handle extention tags.
Fixed: deep nesting with some HTML tags.
Speed tweaking.