Avoid double <br /> tags in user input
From: Chris (teddymaflu_nospam_at_fastmail.fm)
Date: 08/30/04
- Next message: Average_Joe: "Standard interfaces and objects? (Where are they?)"
- Previous message: steve: "Re: Search engine for indexing html AND mysql data? SWISH-E?"
- Next in thread: Wes Spikes: "Re: Avoid double <br /> tags in user input"
- Reply: Wes Spikes: "Re: Avoid double <br /> tags in user input"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 30 Aug 2004 21:27:45 +0200
Hello,
I have a form on my page so that users can input comments in a MySQL
table. I use the nl2br function to filter the input. If a user press
twice on the Enter key, this creates a double <br /> tag. How can I
avoid that? How to convert double br tags into single br tags?
Thank you for your help.
Cheers
Chris
- Next message: Average_Joe: "Standard interfaces and objects? (Where are they?)"
- Previous message: steve: "Re: Search engine for indexing html AND mysql data? SWISH-E?"
- Next in thread: Wes Spikes: "Re: Avoid double <br /> tags in user input"
- Reply: Wes Spikes: "Re: Avoid double <br /> tags in user input"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|