New Feature: replace text handler

This changes introduces a handler that can be used to replace the matched text with new text (instead of wrapping the matched text in a specified element).