Skip to content

This PHP functions uses dynamic opening and closing tags and searches for them in the supplied string. It then removes them with its content.

License

Notifications You must be signed in to change notification settings

MJNinja/remove-tags-and-its-content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Remove tags and the content between them

In PHP you get the strip_tags() function which allows you to remove all or only specific tags from your string, but it doesn't remove the content between the tags. This is where this function comes in handy. It uses dynamic opening and closing tags and searches for them in the supplied string, and them removes the tags and the content between them.

About

This PHP functions uses dynamic opening and closing tags and searches for them in the supplied string. It then removes them with its content.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages