<?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: Hidden Characters in Safari&#8217;s Copy-and-Paste Caused Site Errors</title>
	<atom:link href="http://maymay.net/blog/2004/09/14/hidden-characters-in-safaris-copy-and-paste-caused-site-errors/feed/" rel="self" type="application/rss+xml" />
	<link>http://maymay.net/blog/2004/09/14/hidden-characters-in-safaris-copy-and-paste-caused-site-errors/</link>
	<description>The brutally honest, first-person account of Meitar Moscovitz&#039;s life.</description>
	<lastBuildDate>Tue, 07 Feb 2012 15:17:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joel \</title>
		<link>http://maymay.net/blog/2004/09/14/hidden-characters-in-safaris-copy-and-paste-caused-site-errors/comment-page-1/#comment-13</link>
		<dc:creator>Joel \</dc:creator>
		<pubDate>Wed, 15 Sep 2004 04:01:30 +0000</pubDate>
		<guid isPermaLink="false">/?p=24#comment-13</guid>
		<description>Uhm. yeah ... except the &lt; is supposed to be &lt; and the &gt; is supposed to be &gt;</description>
		<content:encoded><![CDATA[<p>Uhm. yeah &#8230; except the &amp;lt; is supposed to be &lt; and the &amp;gt; is supposed to be &gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel "Jaykul" Bennett</title>
		<link>http://maymay.net/blog/2004/09/14/hidden-characters-in-safaris-copy-and-paste-caused-site-errors/comment-page-1/#comment-12</link>
		<dc:creator>Joel "Jaykul" Bennett</dc:creator>
		<pubDate>Wed, 15 Sep 2004 04:00:34 +0000</pubDate>
		<guid isPermaLink="false">/?p=24#comment-12</guid>
		<description>You should be able to remove nested acronym tags fairly simply: If you look in the code, you&#039;ll see I cheat a little and use two regular expressions...  The second regex is a &#039;fix&#039; regex which removes acronym tags from within other tags.  That is: the initial regex is too agressive so I fix it by checking for acronyms inside angle brackets.  Anyway, you could fix your situation in a similar way with a third line:

&lt;code&gt;$text = preg_replace(
    &quot;&#124;&lt;acronym[^&gt;]*&gt;&lt;acronym title=&quot;$description&quot;&gt;$acronym&lt;/acronym&gt;&lt;/acronym&gt;&#124;imsU&quot;,
    &quot;&lt;acronym title=&quot;$description&quot;&gt;$acronym&lt;/acronym&gt;&quot; , $text);&lt;/code&gt;

That should do it [:)] , but I haven&#039;t really tested it ...</description>
		<content:encoded><![CDATA[<p>You should be able to remove nested acronym tags fairly simply: If you look in the code, you&#8217;ll see I cheat a little and use two regular expressions&#8230;  The second regex is a &#8216;fix&#8217; regex which removes acronym tags from within other tags.  That is: the initial regex is too agressive so I fix it by checking for acronyms inside angle brackets.  Anyway, you could fix your situation in a similar way with a third line:</p>
<p><code>$text = preg_replace(<br />
    "|&amp;lt;acronym[^&amp;gt;]*&amp;gt;&amp;lt;acronym title="$description"&amp;gt;$acronym&amp;lt;/acronym&amp;gt;&amp;lt;/acronym&amp;gt;|imsU",<br />
    "&amp;lt;acronym title="$description"&amp;gt;$acronym&amp;lt;/acronym&amp;gt;" , $text);</code></p>
<p>That should do it [:)] , but I haven&#8217;t really tested it &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>

