<?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: Replace HTML Special Characters With Entities &#8211; But Without Touching Tags</title>
	<atom:link href="http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/</link>
	<description>Web development, programming and I.T.</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:39:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Karl</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-27985</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Wed, 11 Jan 2012 19:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-27985</guid>
		<description>Hi rené,

Hmm it should be able to handle that. I&#039;ll take a look and post an update when I figure out what&#039;s going on. Thanks for letting me know!

Karl</description>
		<content:encoded><![CDATA[<p>Hi rené,</p>
<p>Hmm it should be able to handle that. I&#8217;ll take a look and post an update when I figure out what&#8217;s going on. Thanks for letting me know!</p>
<p>Karl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rene</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-27979</link>
		<dc:creator>rene</dc:creator>
		<pubDate>Wed, 11 Jan 2012 16:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-27979</guid>
		<description>Hey Karl,

Really nice function! It works good in most cases but currently, the function escapes a bit too much if you have content like the following:

    &#8594;

In this case it shouldn&#039;t escape the ampersand but it does. Unfortunately, I don&#039;t know how to add this special case easily to your regular expression.

best
,rené</description>
		<content:encoded><![CDATA[<p>Hey Karl,</p>
<p>Really nice function! It works good in most cases but currently, the function escapes a bit too much if you have content like the following:</p>
<p>    &amp;#8594;</p>
<p>In this case it shouldn&#8217;t escape the ampersand but it does. Unfortunately, I don&#8217;t know how to add this special case easily to your regular expression.</p>
<p>best<br />
,rené</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-6632</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Wed, 06 Oct 2010 15:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-6632</guid>
		<description>Hey Karl ... 

I am creating a new tutorial that is intended to create a shopping cart using CodeIgniter.  
Feel free to peruse it if you wish.  
http://www.redbonzai.com/blog/web-development/how-to-create-a-digital-shopping-cart-with-codeigniter/

I am currently doing quite a bit with wordpress also, like creating e-commerce applications inside, and custom CMS backends.  

If you would like to collaborate, or exchange ideas you are more than welcome. 

Thanks for your time. 

Christian</description>
		<content:encoded><![CDATA[<p>Hey Karl &#8230; </p>
<p>I am creating a new tutorial that is intended to create a shopping cart using CodeIgniter.<br />
Feel free to peruse it if you wish.<br />
<a href="http://www.redbonzai.com/blog/web-development/how-to-create-a-digital-shopping-cart-with-codeigniter/" rel="nofollow">http://www.redbonzai.com/blog/web-development/how-to-create-a-digital-shopping-cart-with-codeigniter/</a></p>
<p>I am currently doing quite a bit with wordpress also, like creating e-commerce applications inside, and custom CMS backends.  </p>
<p>If you would like to collaborate, or exchange ideas you are more than welcome. </p>
<p>Thanks for your time. </p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-4949</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Thu, 19 Aug 2010 18:03:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-4949</guid>
		<description>Hi Christian,

You&#039;re very welcome to use anything you find here however you like.

Karl</description>
		<content:encoded><![CDATA[<p>Hi Christian,</p>
<p>You&#8217;re very welcome to use anything you find here however you like.</p>
<p>Karl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-4896</link>
		<dc:creator>Christian</dc:creator>
		<pubDate>Tue, 17 Aug 2010 18:52:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-4896</guid>
		<description>Hey karl ... I thought this was really helpful.  Would you be alright if I put a trackback to your blog on this topic?  I am just now building a site http://www.redbonzai.com  and I want to feature this on it. 

Christian</description>
		<content:encoded><![CDATA[<p>Hey karl &#8230; I thought this was really helpful.  Would you be alright if I put a trackback to your blog on this topic?  I am just now building a site <a href="http://www.redbonzai.com" rel="nofollow">http://www.redbonzai.com</a>  and I want to feature this on it. </p>
<p>Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-398</link>
		<dc:creator>Karl</dc:creator>
		<pubDate>Fri, 13 Nov 2009 23:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-398</guid>
		<description>Hi Claire

If you just want to do a simple replacement and don&#039;t mind where the word might appear, you would be better off using PHP&#039;s str_replace() function:

[cc lang=&quot;php&quot;]
$word = &quot;foo&quot;;
$replace = &quot;bar&quot;;
$string = &quot;&lt;img src=&quot;hello.png&quot; alt=&quot;This is a nice foo image&quot; /&gt;&lt;p&gt;This is a nice foo string&lt;/p&gt;&quot;;
echo str_replace($word, $replace, $string); // &lt;img src=&quot;hello.png&quot; alt=&quot;This is a nice bar image&quot; /&gt;&lt;p&gt;This is a nice bar string&lt;/p&gt;
[/cc]</description>
		<content:encoded><![CDATA[<p>Hi Claire</p>
<p>If you just want to do a simple replacement and don&#8217;t mind where the word might appear, you would be better off using PHP&#8217;s str_replace() function:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$word</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;foo&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$replace</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;bar&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;img src=&quot;</span>hello<span style="color: #339933;">.</span>png<span style="color: #0000ff;">&quot; alt=&quot;</span>This is a nice foo image<span style="color: #0000ff;">&quot; /&gt;&lt;p&gt;This is a nice foo string&lt;/p&gt;&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$word</span><span style="color: #339933;">,</span> <span style="color: #000088;">$replace</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// &lt;img src=&quot;hello.png&quot; alt=&quot;This is a nice bar image&quot; /&gt;&lt;p&gt;This is a nice bar string&lt;/p&gt;</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claire Allen</title>
		<link>http://www.karlrixon.co.uk/writing/replace-html-special-characters-with-entities-but-without-touching-tags/comment-page-1/#comment-390</link>
		<dc:creator>Claire Allen</dc:creator>
		<pubDate>Fri, 13 Nov 2009 00:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.karlrixon.co.uk/?p=94#comment-390</guid>
		<description>sorry... i&#039;m not really sure which parts I need to change to replace a word in the main content of a site, that might also appear in an alt tag?</description>
		<content:encoded><![CDATA[<p>sorry&#8230; i&#8217;m not really sure which parts I need to change to replace a word in the main content of a site, that might also appear in an alt tag?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

