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 contentAndrew Hazen26 May
  • Re: Stripping HTML from db contentStefan Hinz26 May
    • Looking for more detail on upgrading to 4 from 3Scott Haneda26 May
      • RE: Looking for more detail on upgrading to 4 from 3electroteque27 May
        • Re: Looking for more detail on upgrading to 4 from 3Scott Haneda27 May
          • Re: Looking for more detail on upgrading to 4 from 3daniel27 May
            • Re: Looking for more detail on upgrading to 4 from 3Scott Haneda27 May
              • mysql_fix_privilege_tables behaves odd, explain thisScott Haneda27 May
              • mysql_fix_privilege_tables behaves odd, explain thisScott Haneda27 May
        • Frustrations with upgrading to 4 from 3, and a lack of notes and docsScott Haneda27 May