i have a simple php example
<?php
$txt = "<p>Hello world!</p>";
echo "<span>$txt</span>";
?>
How i can render the $text varibale without p
elements, output should be like this:
<span>Hello world!</span>
i have a simple php example
<?php
$txt = "<p>Hello world!</p>";
echo "<span>$txt</span>";
?>
How i can render the $text varibale without p
elements, output should be like this:
<span>Hello world!</span>
Either use strip_tags()
or take the <p>
's out manually...