fix bug with replacing links in <a href=''/>