title: javascript critical error script1006: expected ')' for href inside msgBody in asp.net
body: <p>I get the error when I try the following code - </p>
  
  <pre><code>Dim email As String = outPutParameter2.Value.ToString()
          If email &lt;&gt; String.Empty Then
              Dim url As String = "mailto:" + email
              Dim subject As String
              Dim msgBody As String
              Dim ProjLink As String = "Click on the &lt;a href='http://abc.gov/Facts/ProjectDetails.aspx?project_pk=" + strProjectid + "'&gt;Link&lt;/a&gt;"
              subject = "?subject=Returned Facts Review For Project Number " + strProjNo
              msgBody = "&amp;body=The Facts review has been returned. To check click " + ProjLink
              url = url + subject + msgBody
              ClientScript.RegisterStartupScript(Me.GetType(), "OpenWin", "&lt;script&gt;openNewWin('" &amp; url &amp; "');&lt;/script&gt;")
          End If
  </code></pre>
  
  <p>So I tried to use the escape character like - </p>
  
  <pre><code>Dim ProjLink As String = "&lt;a href=\'http://abc.gov/Facts/ProjectDetails.aspx?project_pk=" + strProjectid + "\'&gt;Link&lt;/a&gt;"
  </code></pre>
  
  <p>Then the whole link shows in the email but I want it to show as the word Link only with the actual path hidden.</p>
  
  <p>Can someone please help?</p>
  
  <p>Thanks</p>