title: MVC Model property works intermittently with Javascript
body: <p>I have a pretty basic MVC application and I am using a little bit of jQuery/JavaScript in it.
  I am passing a Model parameter of type string into a function call.  It works with some input but not others and I am wondering why and if it is any of the characters in the string.</p>
  
  <p>Here are my functions:</p>
  
  <pre><code>//In the View
   $().ready(function () {
        alert(@Model.PartNumber);  // Returns nothing on second input value below
        LoadMenus(@Model.PartNumber);
  });
  
  // In an external js file referenced in _layout.cshtml
  LoadMenus(partNumber){
       alert(partNumber) // Returns nothing on my second value from below
       $('#something').append('&lt;a href="/MyController/Part?partNumber=' + partNumber + '"&gt;&lt;div class="col-12 sidebar-link"&gt;Part&lt;/div&gt;&lt;/a&gt;');
  ...
  }
  </code></pre>
  
  <p>These are two of the values that I have used:</p>
  
  <p>'<strong>100226</strong>' and the function is executed successfully, loading my menu</p>
  
  <p>'<strong>5237HES-06</strong>' and the function doesn't execute</p>
  
  <p>I have put console log and alert statements to see what gets loaded and what doesn't.  No JS alerts are triggered in the jquery or javascript functions.</p>
  
  <p>Please shed some light.  Hopefully something silly that I am overlooking.</p>