<?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"
	>
<channel>
	<title>Comments on: Working with HTML markup</title>
	<atom:link href="http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/</link>
	<description>News, opinion, and fresh thinking for web developers and designers. The official podcast of sitepoint.com.</description>
	<pubDate>Fri, 05 Dec 2008 02:07:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Mike G.</title>
		<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/#comment-699467</link>
		<dc:creator>Mike G.</dc:creator>
		<pubDate>Sun, 20 Apr 2008 14:57:50 +0000</pubDate>
		<guid isPermaLink="false">1534747901#comment-699467</guid>
		<description>&lt;code&gt;
 using System.Text.RegularExpressions;
 ...

public static string RemoveHTML(string in_HTML)
{
   return Server.HtmlDecode(Regex.Replace(in_HTML, "", ""));
}
&lt;/code&gt;

if not in HTTP Context page, then use the fully qualified reference System.Web.HttpContext.Current.Server.HtmlDecode if this function is in a class file rather than a page, usercontrol etc.</description>
		<content:encoded><![CDATA[<code>
 using System.Text.RegularExpressions;
 ...

public static string RemoveHTML(string in_HTML)
{
   return Server.HtmlDecode(Regex.Replace(in_HTML, "", ""));
}
</code>
<p>if not in HTTP Context page, then use the fully qualified reference System.Web.HttpContext.Current.Server.HtmlDecode if this function is in a class file rather than a page, usercontrol etc.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Skunk</title>
		<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/#comment-7571</link>
		<dc:creator>Skunk</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">1534747901#comment-7571</guid>
		<description>&lt;p&gt;A shorter way of doing this is with a regular expression replacement tool that supports callbacks - i.e one that lets you find a certain pattern and replace it with the return value of a function that takes the matched pattern. You can see an example of the technique using PHP here:&lt;/p&gt;

&lt;p&gt;http://simon.incutio.com/archive/2003/09/20/pirateCode&lt;/p&gt;

&lt;p&gt;The same technique can also be used in Python and Javascript. I've never used .NET but from glancing over the docs it looks like the Regex.Replace(String, MatchEvaluator) method would do the job.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>A shorter way of doing this is with a regular expression replacement tool that supports callbacks - i.e one that lets you find a certain pattern and replace it with the return value of a function that takes the matched pattern. You can see an example of the technique using PHP here:</p>
<p><a href="http://simon.incutio.com/archive/2003/09/20/pirateCode" rel="nofollow">http://simon.incutio.com/archive/2003/09/20/pirateCode</a></p>
<p>The same technique can also be used in Python and Javascript. I&#8217;ve never used .NET but from glancing over the docs it looks like the Regex.Replace(String, MatchEvaluator) method would do the job.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: miseldine</title>
		<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/#comment-7572</link>
		<dc:creator>miseldine</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">1534747901#comment-7572</guid>
		<description>&lt;p&gt;Ah yes. You'd need to use the MatchCollection I believe from a regular expression and process it accordingly. &lt;/p&gt;

&lt;p&gt;Regular expressions have always confused me to be honest...they're so pretty yet ugly at the same time :)&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>Ah yes. You&#8217;d need to use the MatchCollection I believe from a regular expression and process it accordingly. </p>
<p>Regular expressions have always confused me to be honest&#8230;they&#8217;re so pretty yet ugly at the same time :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: AlexW</title>
		<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/#comment-7573</link>
		<dc:creator>AlexW</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">1534747901#comment-7573</guid>
		<description>&lt;p&gt;I reckon Harry Potter would be into regular expressions. Concoct some obscure incantation, unleash it, and it does something very cool but slightly scary. Definitely a dark art.&lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>I reckon Harry Potter would be into regular expressions. Concoct some obscure incantation, unleash it, and it does something very cool but slightly scary. Definitely a dark art.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Manjesh</title>
		<link>http://www.sitepoint.com/blogs/2004/03/23/working-with-html-markup/#comment-7574</link>
		<dc:creator>Manjesh</dc:creator>
		<pubDate>Wed, 31 Dec 1969 19:00:00 +0000</pubDate>
		<guid isPermaLink="false">1534747901#comment-7574</guid>
		<description>&lt;p&gt;THank You, We Got the Solution with your Article what we were searching thanks a lot. &lt;/p&gt;

</description>
		<content:encoded><![CDATA[<p>THank You, We Got the Solution with your Article what we were searching thanks a lot. </p>]]></content:encoded>
	</item>
</channel>
</rss>
