<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ShareThis Forums Topic: How to escape single quotes</title>
<link>http://forums.sharethis.com/</link>
<description>ShareThis Forums Topic: How to escape single quotes</description>
<language>en</language>
<pubDate>Wed, 07 Jan 2009 08:10:01 +0000</pubDate>

<item>
<title>davemackey on "How to escape single quotes"</title>
<link>http://forums.sharethis.com/topic/how-to-escape-single-quotes#post-576</link>
<pubDate>Fri, 08 Aug 2008 03:21:41 +0000</pubDate>
<dc:creator>davemackey</dc:creator>
<guid isPermaLink="false">576@http://forums.sharethis.com/</guid>
<description>&#60;p&#62;I'll add to this that if you are using smarty you can do something like this:&#60;br /&#62;
summary:'{/literal}{$story_content&#124;escape}{literal}'&#60;br /&#62;
David.
&#60;/p&#62;</description>
</item>
<item>
<title>davemackey on "How to escape single quotes"</title>
<link>http://forums.sharethis.com/topic/how-to-escape-single-quotes#post-575</link>
<pubDate>Fri, 08 Aug 2008 02:23:30 +0000</pubDate>
<dc:creator>davemackey</dc:creator>
<guid isPermaLink="false">575@http://forums.sharethis.com/</guid>
<description>&#60;p&#62;Very helpful. Thanks. ShareThis team - any intent to fix this on your end?&#60;br /&#62;
David.
&#60;/p&#62;</description>
</item>
<item>
<title>lrivers on "How to escape single quotes"</title>
<link>http://forums.sharethis.com/topic/how-to-escape-single-quotes#post-554</link>
<pubDate>Wed, 30 Jul 2008 20:18:50 +0000</pubDate>
<dc:creator>lrivers</dc:creator>
<guid isPermaLink="false">554@http://forums.sharethis.com/</guid>
<description>&#60;p&#62;OK, I was having a problem where I was passing an article title to the sharethis JavaScript and the presence of single quotes (for example) was breaking the widget.&#60;/p&#62;
&#60;p&#62;I discovered that if I added the following script before the sharethis JavaScript and then calling this variable instead of the raw title works.&#60;/p&#62;
&#60;p&#62;Now, the system I'm using has an escape function built in, but so does JavaScript, which you can use to escape the title string.&#60;/p&#62;
&#60;p&#62;Hope that helps someone.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;script type=&#38;quot;text/javascript&#38;quot;&#38;gt;
escaped_title=&#38;quot;{{ entry.title &#124; escape }}&#38;quot;;
&#38;lt;/script&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>

</channel>
</rss>
