replace html strings wtih tokens in templates