title: javascript script is hidden in source view
body: <p>Why don't the script tags and content appear inside a div tag for example.</p>
  
  <p>I have the following code:</p>
  
  <pre><code>&lt;div&gt;
                      &lt;!-- BEGIN: YTV Syndicate script --&gt;
                      &lt;!-- Edit Section--&gt;
                      &lt;script type="text/javascript"&gt;
                          alert('hello!'); //check if scripts actually works
                          var YTVSYND = {}
                          YTVSYND.key = 'xxx';
                          YTVSYND.template = {}
                          YTVSYND.template.name = 'ytv'
                          YTVSYND.template.size = 'size300x250'
                          YTVSYND.soc = '&lt;%= Model.Code %&gt;';
                          YTVSYND.type = 'career';
                      &lt;/script&gt;
                      &lt;!-- END: EDIT --&gt;
                      &lt;!-- === DO NOT EDIT BELOW=== --&gt;
                      &lt;script type="text/javascript"&gt;
                          var ytvSyndUrl = (location.protocol == 'https:') ? 'https://' : 'http://';
                          ytvSyndUrl += 'syncdn.youniversitytv.com/synapi/embed/ytv-embed-api.js';
                          ytvSyndUrl = "/Scripts/ytv-embed-api.js"
                          var str = "&lt;scr" + "ipt type='text/javascript' src='" + ytvSyndUrl + "'&gt;";
                          str += "&lt;";
                          str += "\/scr" + "ipt&gt;";
  
                          var script = document.createElement('script');
                          script.type = 'text/javascript';
                          script.src = ytvSyndUrl;
  
                          $("#fgm").html(str)
                      &lt;/script&gt;
                      &lt;!-- EOF: YTV Syndicate script --&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>It executes just but when I check the source it only shows the comments</p>
  
  <pre><code>    &lt;!-- BEGIN: YTV Syndicate script --&gt;
      &lt;!-- Edit Section--&gt;
      &lt;!-- END: EDIT --&gt;
      &lt;!-- === DO NOT EDIT BELOW=== --&gt;
      &lt;!-- EOF: YTV Syndicate script --&gt;
  </code></pre>
  
  <p>and no sign of the script tags and the actual script .</p>
  
  <p>Note: this is inside a jquery modal, i have the same script inside a normal page and it shows up in the source view.</p>
  
  <p><a href="http://img521.imageshack.us/img521/8281/capture1nn.jpg" rel="nofollow">1st</a></p>
  
  <p><a href="http://img221.imageshack.us/img221/2890/capture2qi.jpg" rel="nofollow">2nd</a></p>