Answers for "remove html tag with content from string in php"

PHP
1

remove html tags from string php

<?php
	echo strip_tags("Hello <b>world!</b>");
Posted by: Guest on June-03-2020
1

remove html tags from a string except p in php

$text = '<div class="test"><p>Clean <a href="#">text</a><br><b>Bold</b> text</p></div>';

$cleanText = strip_tags($text, ['p','b','i','br']);
Posted by: Guest on January-14-2021

Code answers related to "remove html tag with content from string in php"

Browse Popular Code Answers by Language