MySQL: How to Strip HTML Tags

The following regular expression function can be used to strip HTML tags:

SELECT REGEXP_REPLACE(field, '<[^>]*>+', '') FROM table

It is very simple.

2 thoughts on “MySQL: How to Strip HTML Tags

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.