Hoist the replacement element out of its containing element if it replaces the entire contents of the element.
The function that will be called on each match. It is expected that this returns an HTML element to be inserted into the final enriched content.
The string pattern to match. Must be flagged as global.