strip_tags – How to remove a hyperlink (HTML Tag) from content in php

460

PHP strip_tags() Function :

strip_tags – How to remove a hyperlink (HTML Tag) from content in php

strip_tags : Strip HTML and PHP tags from a string.

Example:


$text = '<p>Let me Crazy</p> <a href="#letmecrazy">blog</a';
echo strip_tags($text);

Output:


Let me Crazy blog

 

LEAVE A REPLY

Please enter your comment!
Please enter your name here