https://dev.webpages.dk/ |
|
PHP How to Strip of Tags
How to Strip off tags from text string: This will show you how you can strip HTML tags from a string, for when saving it to file or database. Also be sure to read the pages about converting newlines to breaks. And htmlspecialchars, and the second part of this; htmlspecialchars_decode that might be what you are really after. |
|
Icons made by Freepik from www.flaticon.com | Here we present a way to strip HTML tags from a string. We use the strip_tags() to do this. Also see the page 'htmlspcialchars' |
|