Forum Moderators: coopster
I used textarea for description and I want line break in that description when we press ENTER in description. this field(textarea) stored in xml file. when we want to display this description it showing same line. but I need in next line.
In localhost it showing in new line but on server it's not working,
Please suggest.
Thanks
if ([url=http://uk2.php.net/manual/en/function.get-magic-quotes-gpc.php]get_magic_quotes_gpc()[/url]) {
[url=http://uk2.php.net/manual/en/function.stripslashes.php]stripslashes[/url](nl2br($var));
}
else {
nl2br($var)
}
If you are worried about additional slashes then check using get_magic_quotes_* there is a function for gpc and runtime, depending on what you are worried about.