Last active
October 31, 2019 10:06
-
-
Save waptik/e317a87364f79ddafb1183615c32fa97 to your computer and use it in GitHub Desktop.
This will strip all tags including `script`, `ins`, `style` and `stubborn divs`. It's made as an attempt to solve [this](https://gist.github.com/waptik/184a0c9050bb97871949e7041e4661c1). It was made as attempth to replicate `wp_strip_all_tags()` -> https://core.trac.wordpress.org/browser/tags/5.2.3/src/wp-includes/formatting.php#L5091
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Say you have this code sample
Using
strip_tags(zi);
, You'll get