Hello forums!
I was just wondering to know how this can be accomplished:
Case:
SELECT * FROM cms_pages WHERE body LIKE '%keywords%';
Problem: Suppose my keyword=font & body field contains:
<div style="font-size:12px">This is a body area</div>
then above query fetches this row.
I would like to know,
is there any function to strip the html tags while executing query?
something like:
SELECT * FROM cms_pages WHERE strip_tags(body) LIKE '%keywords%';
or by any other means?
Thanks