<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Escape single quotes(&#8216;) in JavaScript</title>
	<atom:link href="http://www.techtamasha.com/escape-single-quotes-in-javascript/22/feed" rel="self" type="application/rss+xml" />
	<link>http://www.techtamasha.com/escape-single-quotes-in-javascript/22</link>
	<description>a new play everyday</description>
	<lastBuildDate>Mon, 16 Jan 2012 07:29:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Mike</title>
		<link>http://www.techtamasha.com/escape-single-quotes-in-javascript/22/comment-page-1#comment-5331</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 19 Mar 2010 05:58:22 +0000</pubDate>
		<guid isPermaLink="false">http://techtamasha.com/?p=22#comment-5331</guid>
		<description>I have a link that calls a javascript function within a php page. I&#039;m trying to find a way to make it work, but I think it keeps breaking at the single quote:

&lt;a href=&quot;popup(\&#039;servers.html\&#039;)&quot; rel=&quot;nofollow&quot;&gt;Server Info&lt;/a&gt;

I&#039;ve tried heredoc as well, but that didn&#039;t resolve the issue either.</description>
		<content:encoded><![CDATA[<p>I have a link that calls a javascript function within a php page. I&#8217;m trying to find a way to make it work, but I think it keeps breaking at the single quote:</p>
<p><a href="popup(\'servers.html\')" rel="nofollow">Server Info</a></p>
<p>I&#8217;ve tried heredoc as well, but that didn&#8217;t resolve the issue either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nischal Shetty</title>
		<link>http://www.techtamasha.com/escape-single-quotes-in-javascript/22/comment-page-1#comment-626</link>
		<dc:creator>Nischal Shetty</dc:creator>
		<pubDate>Mon, 03 Nov 2008 17:45:34 +0000</pubDate>
		<guid isPermaLink="false">http://techtamasha.com/?p=22#comment-626</guid>
		<description>ok, suppose the text to be displayed in the alert is - I love &#039;Java&#039; and this is my &quot;Blog&quot;. You would write this as

alert(&quot;I love \&#039;Java\&#039; and this is my \&quot;Blog\&quot; &quot;);

This is the safest way to write. Hope you get it ;)</description>
		<content:encoded><![CDATA[<p>ok, suppose the text to be displayed in the alert is &#8211; I love &#8216;Java&#8217; and this is my &#8220;Blog&#8221;. You would write this as</p>
<p>alert(&#8220;I love \&#8217;Java\&#8217; and this is my \&#8221;Blog\&#8221; &#8220;);</p>
<p>This is the safest way to write. Hope you get it <img src='http://www.techtamasha.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.techtamasha.com/escape-single-quotes-in-javascript/22/comment-page-1#comment-625</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 03 Nov 2008 17:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://techtamasha.com/?p=22#comment-625</guid>
		<description>Can you explain how to make this work?  basically I want to display an alert on the click of an element that has both single and double quotes in the text.  Thanks!

&lt;a&gt;click for alert&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Can you explain how to make this work?  basically I want to display an alert on the click of an element that has both single and double quotes in the text.  Thanks!</p>
<p><a>click for alert</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.411 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-16 14:40:08 -->

