<?xml version="1.0" encoding="UTF-8"?><!-- 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>WordPress &#8250; Support Topic: Removing &#60;p&#62; from the_excerpt</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Removing &#60;p&#62; from the_excerpt</description>
<language>en</language>
<pubDate>Wed, 25 Nov 2009 21:44:33 +0000</pubDate>

<item>
<title>ajaskey on "Removing &#60;p&#62; from the_excerpt"</title>
<link>http://wordpress.org/support/topic/276430#post-1102553</link>
<pubDate>Sat, 13 Jun 2009 22:58:33 +0000</pubDate>
<dc:creator>ajaskey</dc:creator>
<guid isPermaLink="false">1102553@http://wordpress.org/support/</guid>
<description>&#60;p&#62;cais - Thanks for the suggestion.  I found that &#34;the_excerpt_rss()&#34; call does exactly what I want.
&#60;/p&#62;</description>
</item>
<item>
<title>cais on "Removing &#60;p&#62; from the_excerpt"</title>
<link>http://wordpress.org/support/topic/276430#post-1092024</link>
<pubDate>Thu, 04 Jun 2009 19:54:16 +0000</pubDate>
<dc:creator>cais</dc:creator>
<guid isPermaLink="false">1092024@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Admittedly my PHP skills are not the greatest but consider the &#60;em&#62;code&#60;/em&#62; changes of using the PHP &#60;strong&#62;substr&#60;/strong&#62; and &#60;strong&#62;strlen&#60;/strong&#62; functions:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php if (is_single()) {
echo (&#38;#39; &#38;lt;meta name=&#38;quot;description&#38;quot; content=&#38;quot;&#38;#39;);
substr(the_excerpt(),4,(strlen(the_excerpt)-4));
echo (&#38;#39; &#38;quot;&#38;gt;&#38;#39;);
}
elseif (is_page())&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Links to the PHP manual for reference, please validate code.&#60;br /&#62;
&#60;a href=&#34;http://ca.php.net/substr&#34; rel=&#34;nofollow&#34;&#62;http://ca.php.net/substr&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://ca.php.net/manual/en/function.strlen.php&#34; rel=&#34;nofollow&#34;&#62;http://ca.php.net/manual/en/function.strlen.php&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>ajaskey on "Removing &#60;p&#62; from the_excerpt"</title>
<link>http://wordpress.org/support/topic/276430#post-1091631</link>
<pubDate>Thu, 04 Jun 2009 12:39:57 +0000</pubDate>
<dc:creator>ajaskey</dc:creator>
<guid isPermaLink="false">1091631@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I use the_excerpt() to create the description of individual posts.  &#60;/p&#62;
&#60;p&#62;&#38;lt;?php if (is_single()) {&#60;br /&#62;
echo ('	&#38;lt;meta name=&#34;description&#34; content=&#34;');&#60;br /&#62;
the_excerpt();&#60;br /&#62;
echo (' &#34;&#38;gt;');&#60;br /&#62;
}&#60;br /&#62;
elseif (is_page())&#60;br /&#62;
...&#60;br /&#62;
...&#60;/p&#62;
&#60;p&#62;Each description is enclosed in &#38;lt;p&#38;gt;...&#38;lt;/p&#38;gt;.  I want to remove this.  Is there a function to send the output of the_excerpt through to remove html tags?&#60;/p&#62;
&#60;p&#62;Example of output:&#60;/p&#62;
&#60;p&#62;&#38;lt;meta name=&#34;description&#34; content=&#34;&#38;lt;p&#38;gt;The Square of 90 is about to complete off the March low with price up over 40%.&#38;lt;/p&#38;gt;&#60;/p&#62;
&#60;p&#62;Thanks.&#60;br /&#62;
Andy
&#60;/p&#62;</description>
</item>

</channel>
</rss>
