Corrects `replace()` with HTML string

See #117.