Search
Left Quote    It is possible to store the mind with a million facts and still be entirely uneducated.
- Alec Bourne    
Right Quote
 
[login] | [Register]
Forum Index » Java and JavaScript » Viewing Topic and Replies
Post Reply


        Viewing Topic: Help Replace "<br&g t;" with "\n&quo t;
  This user is offline  BoricuaLayz
  Subject: "Help Replace "<br&g t;&qu..." Posted: @ 11:21 pm on May 14 2008   
Member #: 356
Rank: User - (30)
Since: 06/25/07
Posts: 44
From: Florida

I need some help with this.
I am a total noob to javascript.
So it goes like this....
I use PHP nl2br-when adding the content in the textarea to a database-to replace the \n with <br>....
but when i want to edit what is in the textarea later on the <br> are shown....
so basically i want to replace the <br> that are in the textarea now with \n
please all advice is helpfull

Edited at 11:34:40 pm on 05/14/08


    Viewed: 5,890 Times | Reply to This | To top
  This user is offline  bs0d
  Subject: "re: Help Replace "<br&g t;..." Posted: @ 2:23 pm on May 15 2008    

Member #: 1
Rank: Admin. - (1,505)
Since: 02/06/05
Posts: 600
From: USA

What about str_replace() before displaying the content from the database?




-bs0d | AllSyntax.com

    Viewed: 5,867 Times | Reply to This | To top
  This user is offline  misterhaan
  Subject: "re: Help Replace "<br&g t;..." Posted: @ 2:18 pm on May 15 2008    

Member #: 5
Rank: User - (213)
Since: 02/11/05
Posts: 148
From: chair

i don




please note that the above post is likely made up in its entirety.

    Viewed: 5,864 Times | Reply to This | To top
Viewing Page: 1 of 1


1 |

You must be logged in to post on the forums. Login or Register








"AllSyntax.com" Copyright © 2002-2018; All rights lefted, all lefts righted.
Privacy Policy  |  Internet Rank