get meta description tag with xpath

后端 未结 5 1959
生来不讨喜
生来不讨喜 2021-02-07 06:39

I need the content the description and the keywords tag content. I have this code, but dont write anything. Idea?

$str = <<< EOD



        
5条回答
  •  孤街浪徒
    2021-02-07 07:17

    Make sure that you put EOD; at a line without any spaces and indentation like:

      $str = <<< EOD
      
    
    EOD;
    

提交回复
热议问题