本帖最后由 masofeng 于 2013-12-06 15:11:59 编辑

解决方案 »

  1.   

    $s =<<< TXT
    <dl class=\"feed_list\" mid=\"3652509438178524\" action-type=\"feed_list_item\" >\n <dt class=\"face\">\n  <a href=\"http:\/\/weibo.com\/u\/1954326033\" title=\"\u8db4\u8db4\u5c0f\u60a0\"
    TXT;
    echo $s = str_replace('\\"', '"', $s);

    <dl class="feed_list" mid="3652509438178524" action-type="feed_list_item" >
     <dt class="face">
      <a href="http:\/\/weibo.com\/u\/1954326033" title="\u8db4\u8db4\u5c0f\u60a0"进一步echo preg_replace_callback('/\\\u.{4}/', 'func', $s);
    function func($r) {
      return json_decode('"' . $r[0] . '"');
    }

    "<dl class="feed_list" mid="3652509438178524" action-type="feed_list_item" >
     <dt class="face">
      <a href="http:\/\/weibo.com\/u\/1954326033" title="趴趴小悠"