strip_tags function of php

strip_tags — Strip HTML and PHP tags from a string

<?php
$text = ‘This shop at Bypass Road has a practice of charging by looking at customers not at product.<br />
<br />
<p>Test paragraph.</p><!– Comment –> <a href=”#fragment”>Other text</a>’;
echo strip_tags($text);
echo “\n”;

// Allow <p> and <a>
echo strip_tags($text, ‘<p><a>’);
?>

The output of the above  strip_tags php

This shop at Bypass Road has a practice of charging by looking at customers not at product.Test paragraph.Other text

2nd out put of  strip_tags php

‘This shop at Bypass Road has a practice of charging by looking at customers not at product.<br />
<br />
Test paragraph.<!– Comment –> Other text