Use preg_replace_callback on tags which map to tags which map to tags

Signed-off-by: Suki <suki@missallsunday.com>