[PHP-DB] Formatting txt from a database

2002-12-12 Thread Lisi
I am retrieving text stored in a database, and I want to strip out any HTML tags and then only display the first 30 characters with ... to show the user that there is more text to view. My problem is with stripping out HTML tags, the code is stripping out the text enclosed within the HTML tags

Re: [PHP-DB] Formatting txt from a database

2002-12-12 Thread DL Neil
Lisi, To save reinventing the wheel would strip_tags() be any use to you? (see manual) =dn I am retrieving text stored in a database, and I want to strip out any HTML tags and then only display the first 30 characters with ... to show the user that there is more text to view. My problem is

Re: [PHP-DB] Formatting txt from a database

2002-12-12 Thread Matt Vos
- From: Lisi [EMAIL PROTECTED] To: PHP-DB [EMAIL PROTECTED] Sent: Thursday, December 12, 2002 3:55 AM Subject: [PHP-DB] Formatting txt from a database I am retrieving text stored in a database, and I want to strip out any HTML tags and then only display the first 30 characters