Site icon Shaharia's Blog

Remove HTML Tag from a PHP String

To remove all the HTML tags from your PHP string we can easily use strip_tags ($YourStrings) or preg_replace ('/<[^>]*>/', '', $YourStrings)

[adsense_id=”2″]

Exit mobile version