PHP/regex: How to get the string value of HTML tag?

前端 未结 8 2133
忘了有多久
忘了有多久 2020-11-28 07:24

I need help on regex or preg_match because I am not that experienced yet with regards to those so here is my problem.

I need to get the value \"get me\" but I think

8条回答
  •  醉话见心
    2020-11-28 08:13

    this might be old but my answer might help someone

    You can simply use

    $str = '

    get me

    '; echo strip_tags($str);

    https://www.php.net/manual/en/function.strip-tags.php

提交回复
热议问题