How to remove P & BR tag
-
I am using custom field & create following functionality but p & br tag not remove,So what can i do?Please help me
<?php $text = the_field(‘footer_contact’);
$strip = array(‘<p>’,'</p>’); // search for <p>
echo str_replace($strip,”,$text);
?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to remove P & BR tag’ is closed to new replies.