3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sTAGS($textNt, $prm) { $textSt = strip_tags($textNt, $prm); $text = trim($textSt); //echo htmlentities($text); //echo htmlentities($text, ENT_QUOTES); echo html_entity_decode($text); } $txt = ' <p>Test-Absatz.</p><!-- Kommentar --> <a href="# fragment">Anderer Text</a>'; sTAGS($txt, ""); ?>

preferences:
41.44 ms | 402 KiB | 5 Q