Rename abc<img>def&amp;abc to abc<img>def&amp;abc$1$abc