Strip all HTML tags, except allowed

you can do this by usingstrip_tags function

strip_tags — Strip HTML and PHP tags from a string

 strip_tags($contant,'tag you want to allow');

like

  strip_tags($contant,'<code><p>');

Leave a Comment