<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1023628" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1023628</link>
    <description></description>
    <language>en</language>
          <item>
    <title>You&#039;ve been a great help, thanks!</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145159</link>
    <description> &lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 06:40:20 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1145159 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145157</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://developer.irt.org/script/37.htm&quot; class=&quot;bb-url&quot;&gt;http://developer.irt.org/script/37.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As I said, JavaScript doesn&#039;t care what quotation marks you use. Just be consistent. In other scripting languages, they mean different things (parse or don&#039;t parse), but with JavaScript, they are just delimiters.&lt;/p&gt;
&lt;p&gt;More: &lt;a href=&quot;http://www.iota-six.co.uk/javascript/08_strin.htm&quot; class=&quot;bb-url&quot;&gt;http://www.iota-six.co.uk/javascript/08_strin.htm&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 05:38:32 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1145157 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>Thanks . .</title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145155</link>
    <description> &lt;p&gt;I wasn&#039;t aware that javascript would allow&lt;br /&gt;
document.write(&quot;string&quot;); I thought that it only allowed single quotes in replace of the double quotes in the above example.&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 04:56:06 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1145155 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145148</link>
    <description> &lt;p&gt;Because it&#039;s easier to read and JavaScript doesn&#039;t care.&lt;/p&gt;
&lt;p&gt;Basically following the rules of clarity when all else is equal.&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 02:08:58 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1145148 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145147</link>
    <description> &lt;p&gt;Thanks for the reply.  I think I need some further clarification, though.&lt;/p&gt;
&lt;p&gt;Isn&#039;t the normal syntax:&lt;br /&gt;
document.write(&#039;string&#039;);&lt;/p&gt;
&lt;p&gt;If that&#039;s the case, why is the syntax for the below example:&lt;br /&gt;
document.write(&quot;html&quot;);&lt;/p&gt;
&lt;p&gt;document.write (&quot;aWindow=window.open(str,&#039;groups&#039;,&lt;br /&gt;
&#039;toolbar=no,width=&#039; + wth + &#039;,height=&#039; + ht + &#039;,status=&lt;br /&gt;
no,scrollbars=&#039; + scrl + &#039;,resize=no,menubar=no&#039;);&quot;);&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 01:35:57 +0000</pubDate>
 <dc:creator>cat_mother_</dc:creator>
 <guid isPermaLink="false">comment 1145147 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/escaping-quotes-javascript#comment-1145146</link>
    <description> &lt;p&gt;no. you should only escape out the single quotes as they will indicate the end of the bit to write. best practice says single quotes for JavaScript, double quotes for HTML. See second example for a way to write it more clearly. false line breaks included for this thread only.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;document.write (&amp;#039;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;link href=&lt;br /&gt;&amp;quot;http://www.aftercollege.com/look/aftercollege-site.css&amp;quot; &lt;br /&gt;type=&amp;quot;text/css&amp;quot; rel=&amp;quot;stylesheet&amp;quot;&amp;gt;&amp;#039;);&lt;br /&gt; &lt;br /&gt;document.write (&amp;quot;aWindow=window.open(str,&amp;#039;groups&amp;#039;,&lt;br /&gt;&amp;#039;toolbar=no,width=&amp;#039; + wth + &amp;#039;,height=&amp;#039; + ht + &amp;#039;,status=&lt;br /&gt;no,scrollbars=&amp;#039; + scrl + &amp;#039;,resize=no,menubar=no&amp;#039;);&amp;quot;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Fri, 30 Jan 2004 01:22:57 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1145146 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
