INSERT INTO `reviews`
(`review_name`, `review_text`)
VALUES
('Jane Doe', strip_tags('Hello world <strong>foo</strong> bar'));
Then, we can use the custom
strip_tags()
function in our SQL statements.
DOWNLOAD & NOTES
Here is the download link to the example code, so you don’t have to copy-paste everything.
SORRY FOR THE ADS...
But someone has to pay the bills, and sponsors are paying for it. I insist on not turning Code Boxx into a "paid scripts" business, and I don't "block people with Adblock". Every little bit of support helps.
Buy Me A Coffee
Code Boxx eBooks
EXAMPLE CODE DOWNLOAD
Click here for the source code on GitHub gist
, just click on “download zip” or do a git clone. I have released it under the MIT license, so feel free to build on top of it or use it in your own project.
EXTRA BITS & LINKS
That’s all for this tutorial, and here is a small section on some extras and links that may be useful to you.
LINKS & REFERENCES