Source Code:
(back to article)
<?php $html = "<p>This is a paragraph.</p>"; $text = preg_filter("/<[^>]+>/", "", $html); echo $text; // Outputs: "This is a paragraph." ?>
Result:
Report an issue