Php 删除cURL中的html标记

Php 删除cURL中的html标记,php,html,curl,Php,Html,Curl,我试图以纯文本的形式获取url的内容。目前,我已设法从url获取所有HTML内容。我想知道是否有可能删除cURL中的html标记 <?php // put your code here $ch = curl_init(); $url = "http://visitbirmingham.com/explore-birmingham/blog"; curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch,

我试图以纯文本的形式获取url的内容。目前,我已设法从url获取所有HTML内容。我想知道是否有可能删除cURL中的html标记

 <?php
    // put your code here
    $ch = curl_init();
    $url = "http://visitbirmingham.com/explore-birmingham/blog";
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);
    $cResult = curl_exec($ch);
    curl_close($ch);

    $cResult = str_replace("<", "&lt;", $cResult);
    $cResult = str_replace(">", "&gt;", $cResult);

    echo  $cResult;

    ?>

查看php函数

哇,谷歌php删除html标签是惊人的。
echo strip_tags($cResult);