Corrects `replace()` with HTML string