Home >Backend Development >PHP Tutorial >PHP removes html tags to obtain input plain text document strip_tags
<?php $text = ' Test paragraph. Other text'; echo strip_tags($text); echo "\n"; // Allow echo strip_tags($text, ' '); ?> The above example will output: Test paragraph. Other text Test paragraph. Other text |