| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Andrew Hazen | Date: | May 26 2003 6:50pm |
| Subject: | Stripping HTML from db content | ||
| View as plain text | |||
Hi, Does anyone know of a quick bit of query script using regular expressions or the 'replace' string function to strip HTML tags from databased content?? My site search queries are having indigestion with the rich html content we are storing, because of all the strings in <img tags etc. I want to be able to do something like "select from table where replace(regexp '<*>','',field) like 'search string'" Any help would be appreciated. Thanks. Andrew Hazen, O.C.P. E-Commerce Developer Jatech Solutions Inc. www.jatech.ca Specializing in OSCOMMERCE applications and PHP/MySQL programming.
| Thread | ||
|---|---|---|
| • Stripping HTML from db content | Andrew Hazen | 26 May |
| • Re: Stripping HTML from db content | Stefan Hinz | 26 May |
| • Looking for more detail on upgrading to 4 from 3 | Scott Haneda | 26 May |
| • RE: Looking for more detail on upgrading to 4 from 3 | electroteque | 27 May |
| • Re: Looking for more detail on upgrading to 4 from 3 | Scott Haneda | 27 May |
| • Re: Looking for more detail on upgrading to 4 from 3 | daniel | 27 May |
| • Re: Looking for more detail on upgrading to 4 from 3 | Scott Haneda | 27 May |
| • mysql_fix_privilege_tables behaves odd, explain this | Scott Haneda | 27 May |
| • mysql_fix_privilege_tables behaves odd, explain this | Scott Haneda | 27 May |
| • Frustrations with upgrading to 4 from 3, and a lack of notes and docs | Scott Haneda | 27 May |
