<?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: Strip all HTML tags from string</title>
	<atom:link href="http://sunali.com/2008/11/09/strip-all-html-tags-from-string/feed/" rel="self" type="application/rss+xml" />
	<link>http://sunali.com/2008/11/09/strip-all-html-tags-from-string/</link>
	<description>Coşkun SUNALI</description>
	<lastBuildDate>Thu, 02 Feb 2012 21:09:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Tim</title>
		<link>http://sunali.com/2008/11/09/strip-all-html-tags-from-string/comment-page-1/#comment-14695</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 02 Jun 2009 19:49:51 +0000</pubDate>
		<guid isPermaLink="false">http://sunali.com/?p=239#comment-14695</guid>
		<description>This worked great.  Thanks for this bit of code.</description>
		<content:encoded><![CDATA[<p>This worked great.  Thanks for this bit of code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steffen</title>
		<link>http://sunali.com/2008/11/09/strip-all-html-tags-from-string/comment-page-1/#comment-13199</link>
		<dc:creator>Steffen</dc:creator>
		<pubDate>Wed, 18 Mar 2009 15:09:10 +0000</pubDate>
		<guid isPermaLink="false">http://sunali.com/?p=239#comment-13199</guid>
		<description>apparently it stripped out the regex.. lol.. and I forgot to put in the return-type &quot;string&quot; for the method :) - you need to fix that yourself.</description>
		<content:encoded><![CDATA[<p>apparently it stripped out the regex.. lol.. and I forgot to put in the return-type &#8220;string&#8221; for the method :) &#8211; you need to fix that yourself.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steffen</title>
		<link>http://sunali.com/2008/11/09/strip-all-html-tags-from-string/comment-page-1/#comment-13198</link>
		<dc:creator>Steffen</dc:creator>
		<pubDate>Wed, 18 Mar 2009 15:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://sunali.com/?p=239#comment-13198</guid>
		<description>Extension-method:

public static StripMarkup(this string s)
{
    if (string.IsNullOrEmpty(s))
    {
        return string.Empty;
    }

    s = Regex.Replace(s, @&quot;&quot;, string.Empty, RegexOptions.Multiline &#124; RegexOptions.IgnoreCase);

    return s;
 
}

you can now use: 

var myvar = txtUserInput.Text.StripMarkup();</description>
		<content:encoded><![CDATA[<p>Extension-method:</p>
<p>public static StripMarkup(this string s)<br />
{<br />
    if (string.IsNullOrEmpty(s))<br />
    {<br />
        return string.Empty;<br />
    }</p>
<p>    s = Regex.Replace(s, @&#8221;", string.Empty, RegexOptions.Multiline | RegexOptions.IgnoreCase);</p>
<p>    return s;</p>
<p>}</p>
<p>you can now use: </p>
<p>var myvar = txtUserInput.Text.StripMarkup();</p>
]]></content:encoded>
	</item>
</channel>
</rss>

