Link to home
Create AccountLog in
Avatar of Fernanditos
Fernanditos

asked on

Query to strip_tags() column content

Hello,

I have a database named "book_bok" the column named "description_bok" contains text with html tags.

I want to remove all HTML tags from description_bok using strip_tags(); function which gives me perfect results.

Can I execute a query from phpmyadmin to SET/UPDATE description_bok to be strip_tags(description_bok) ?

Thank you for any help.
Avatar of Wim_Bl
Wim_Bl
Flag of Belgium image

Hi,

if there is a way you can avoid having the tags in your database, I would certainly advise to do so. If not, this link might put you in the right direction: http://stackoverflow.com/questions/2627940/remove-html-tags-from-record


Best regards,

Wim
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account