I've a SQL table containing HTML coded and formated text from a TinyMCE textarea field.
I want to give the frontend user of my PHP project the possibility to search for a record containing a special word.
If I use a clause like WHERE description LIKE '%<word>%'
, the results (logicaly) also contains records with the word in the HTML code, not only in the readable text.
How I can search only the readable text in a field which contains HTML code?
Is there a function to filter out all unreadable code?