Added ability to specify HTML tags for custom replacements