Avoid double <br /> tags in user input

From: Chris (teddymaflu_nospam_at_fastmail.fm)
Date: 08/30/04


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



Relevant Pages

  • Re: Avoid double <br /> tags in user input
    ... > I have a form on my page so that users can input comments in a MySQL ... I use the nl2br function to filter the input. ... How to convert double br tags into single br tags? ...
    (alt.php)
  • Information manager/organizer with tags question.
    ... stores records by tags and allows filtering and sorting by these tags. ... Interface would have a filter by: pull down menu separated in two ... posts, tag, my name. ... app that does this. ...
    (comp.lang.python)
  • RE: How to turn off WS-addressing and SW-Security
    ... These will basically remove the Security filter and thus not add in any WSSE ... This should be the way to remove the WS-Addressing also, ... when I send the Soap message to a Unix server running AXIS ... It is complainig that it does not like the tags ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Improper coding for my Form Filter
    ... The tags were all mispelled. ... when I select or enter a query into any one of the ... >>and It will not filter. ... > table/query or it's an unquoted string. ...
    (microsoft.public.access.formscoding)
  • Re: how to quickly get up to speed on wonderware line
    ... Excel inputs along with some field inputs, already in WWW, to perform ... that tags the input. ... I don't remember having any trouble finding how ... You can filter within the HMI but the alarms do not see this ...
    (sci.engr.control)