List:General Discussion« Previous MessageNext Message »
From:Stefan Hinz Date:May 26 2003 9:11pm
Subject:Re: Stripping HTML from db content
View as plain text  
Andrew,

> 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??

(...)

> Specializing in OSCOMMERCE applications and PHP/MySQL programming.

If you are using PHP, you might want to accomplish that task in your
application (certainly more straightforward than doing it in SQL). You
could use strip_tags() (http://de2.php.net/strip_tags) and a number of
other nice PHP functions (like nl2br()) for that.
 
Regards,
--
  Stefan Hinz <hinz@stripped>
  iConnect GmbH <http://iConnect.de>
  Heesestr. 6, 12169 Berlin (Germany)
  Telefon: +49 30 7970948-0  Fax: +49 30 7970948-3

[filter fodder: sql, mysql, query]

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