|
-
Apr 20th, 2001, 04:28 AM
#1
I have a message like this in a database.
Welcome all, to my Bulletin Board.
Your free to do anything you like to do.. :)
When i am showing this message in a HTML page it will look like this.
Welcome all, to my Bulletin Board.Your free to do anything you like to do.. :)
But i want to know is how can i replace the return char with <br>? with the
replace function in JavaScript?
-
Apr 20th, 2001, 05:05 AM
#2
Yes.... i have found the solution for it.. 
Code:
BodyString.replace ( /\n/g, '<br>' );
-
Apr 20th, 2001, 05:48 PM
#3
Hyperactive Member
Also, change "your free" to either "you're free" or "you are free".
Example.
Your posting must be changed if you're to be correct
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|