Php Escape-WordPress';s_content()中的HTML字符;

Php Escape-WordPress';s_content()中的HTML字符;,php,html,facebook,wordpress,facebook-graph-api,Php,Html,Facebook,Wordpress,Facebook Graph Api,我正试图在WordPress主题上创建一个自定义Facebook共享按钮 <a title="Facebook This" href="http://www.facebook.com/sharer.php?s=100&p[title]=MY%20TITLE%20-%20<?php the_title(); ?>&p[summary]=<?php the_content(); ?>&p[url]=<?php the_permalink()

我正试图在WordPress主题上创建一个自定义Facebook共享按钮

<a title="Facebook This" href="http://www.facebook.com/sharer.php?s=100&p[title]=MY%20TITLE%20-%20<?php the_title(); ?>&p[summary]=<?php the_content(); ?>&p[url]=<?php the_permalink(); ?>&p[images][0]=<?php bloginfo('template_url'); ?>/images/logo.png" target="_blank">Facebook This</a>

除了Facebook坚持在描述中显示HTML字符外,我的一切工作都非常出色:

<h3>Intro</h3><p>it shows all the tags here and it won't stop!!!</p>...
Intro它在这里显示所有的标签,而且不会停止

。。。
它也通过_extract()实现了这一点

有人知道一种快速删除html标签的方法吗?

使用Strip标签, 临终前:


Saifudin Sarker的回答是一个很好的方法,另一种方法是:


在内容()中转义WordPress的HTML字符; 用途是:


谢谢你的回复。在摆弄它之后,我发现了这项工作:
…&p[summary]=&p[url]=…
strip_tags(get_the_excerpt());
ob_start();
the_content();

$old_content = ob_get_clean();

$new_content = strip_tags($old_content);

echo $new_content;