<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1028357" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1028357</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167308</link>
    <description> &lt;p&gt;Thanks &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Mar 2005 19:07:06 +0000</pubDate>
 <dc:creator>IanD</dc:creator>
 <guid isPermaLink="false">comment 1167308 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167303</link>
    <description> &lt;p&gt;Glad I could help. Site looks great.&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Mar 2005 16:39:56 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1167303 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167249</link>
    <description> &lt;p&gt;It &lt;a href=&quot;http://dailyrandom.blogspot.com/2005/02/switching-to-bloggers-comments.html&quot; class=&quot;bb-url&quot;&gt;worked&lt;/a&gt; &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the inspiration dk01&lt;/p&gt;
 </description>
     <pubDate>Fri, 04 Mar 2005 00:07:04 +0000</pubDate>
 <dc:creator>IanD</dc:creator>
 <guid isPermaLink="false">comment 1167249 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167247</link>
    <description> &lt;p&gt;Actually, I&#039;m just gonna go ahead and do everything in the if condition in HTML but inside a hidden element, and then if the condition is true I&#039;ll change the visibility of the element.&lt;/p&gt;
 </description>
     <pubDate>Thu, 03 Mar 2005 23:53:54 +0000</pubDate>
 <dc:creator>IanD</dc:creator>
 <guid isPermaLink="false">comment 1167247 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167089</link>
    <description> &lt;p&gt;Ok now I see what you are doing.  I know this way sounds really dumb but have you thought of just having it all in a hidden input feild?  Its the only way I can see you getting out of the binds of JS.&lt;/p&gt;
&lt;p&gt;Then you could just myVal = escape(formname.elementname.value);&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Mar 2005 04:04:48 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1167089 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167088</link>
    <description> &lt;p&gt;If I could use PHP I wouldn&#039;t even need to mess with the quotes &#039;cause I could just do&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(if &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;postid &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;x&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;plain html stuff&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;other html stuff&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;}&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Is there any way to do something like that in JavaScript? I tried but couldn&#039;t get it working.&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Mar 2005 03:53:34 +0000</pubDate>
 <dc:creator>IanD</dc:creator>
 <guid isPermaLink="false">comment 1167088 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167087</link>
    <description> &lt;p&gt;Can&#039;t use PHP, unfortunately &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;escape and unescape won&#039;t work because the quotes in the string would break the statement. e.g., escape(&quot;This sentance has a &quot;double&quot; quote&quot;); or escape(&#039;This sentance has a &#039;single&#039; quote&#039;);&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Mar 2005 02:36:50 +0000</pubDate>
 <dc:creator>IanD</dc:creator>
 <guid isPermaLink="false">comment 1167087 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/dealing-js-strings-contain-quotes#comment-1167085</link>
    <description> &lt;p&gt;Can you use php?&lt;/p&gt;
&lt;p&gt;If so see the php functions &lt;a href=&quot;http://us4.php.net/manual/en/function.addslashes.php&quot; class=&quot;bb-url&quot;&gt;addslashes()&lt;/a&gt; and &lt;a href=&quot;http://us4.php.net/manual/en/function.stripslashes.php&quot; class=&quot;bb-url&quot;&gt;stripslashes()&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In Javascript you can try using the &lt;a href=&quot;http://www.javascripter.net/faq/escape.htm#top&quot; class=&quot;bb-url&quot;&gt;escape&lt;/a&gt; and &lt;a href=&quot;http://www.javascripter.net/faq/unescape.htm#top&quot; class=&quot;bb-url&quot;&gt;unescape&lt;/a&gt; functions.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 02 Mar 2005 02:32:42 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1167085 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
