Re added the regex test for wrap and target since it breaks when you not trying to append a html tag.