Fix replacements for tag content