Thread: php - sub character
Results 1 to 2 of 2
Related
-
ISO Character Set Generator Forum: HTML Forum
Replies: 1 -
Remove the new line character from the String Forum: Javascript Forum
Replies: 5 -
Character Customization Script Forum: Javascript Forum
Replies: 0 -
some portugueses character in PERL Forum: CGI Perl Forum
Replies: 0 -
Help - character codes Forum: HTML Forum
Replies: 3
-
10-09-2003, 11:04 AM #1
php - sub character
ok, the last project was a bit over my head, so i found out...
i'm working on a stripped down version now, and it's working. woot woot!
i do have two little problems...
when some one types the ' character it reads back with forward slash marks. i don't think this is a tough one, but i can't find anything on it.
also, i'm trying to format the text like the user has it. how can i tell it to add a "<br> tag when it comes to a "\n"?
thanks!robert koons
-
10-09-2003, 11:50 AM #2
Hi pegboy,
Its automatically putting the slashes in to escape them, remove them using stripslashes() , example -
PHP Code:$string = stripslashes($string);
There is also a function for converting line-breaks to <br /> tags, called nl2br(), similar useage -
PHP Code:$string = nl2br($string);
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum