Commit 786bff5a by Urvil Shah

Remove the Wraping of anchor tag

parent cc5e7a15
Pipeline #7391 passed with stages
in 23 minutes 26 seconds
...@@ -143,7 +143,7 @@ namespace Mobile.Search.Web.Controllers ...@@ -143,7 +143,7 @@ namespace Mobile.Search.Web.Controllers
// POST: Template/Edit/5 // POST: Template/Edit/5
[HttpPost, ValidateInput(false)] [HttpPost, ValidateInput(false)]
public ActionResult FroalaIndex(string key, string value, string EmailId, bool isSendEmail = false,bool WrapUrl=false, bool AdvertiserHasUnSub=true) public ActionResult FroalaIndex(string key, string value, string EmailId, bool isSendEmail = false,bool WrapUrl=false, bool AdvertiserHasUnSub=false)
{ {
try try
{ {
...@@ -171,7 +171,7 @@ namespace Mobile.Search.Web.Controllers ...@@ -171,7 +171,7 @@ namespace Mobile.Search.Web.Controllers
{ {
to_replace= String.Format("{{{{WrapAdvertiserUnsubscribeUrl('{0}')}}}}", m.Groups[1]); to_replace= String.Format("{{{{WrapAdvertiserUnsubscribeUrl('{0}')}}}}", m.Groups[1]);
} }
if(m.Groups[1].Value.Count()>0) if(m.Groups[1].Value.Count()>0 && !m.Groups[1].Value.Contains("anchor"))
{ {
value = value.Replace(m.Groups[1].Value, to_replace); value = value.Replace(m.Groups[1].Value, to_replace);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment