allow postprocess the matched text; relax the assertion for tag clash