[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
www.dhtmlgoodies.com • View topic - Stupid question about escape characters
Advertisement

Stupid question about escape characters

Moderators: Calcifer, slothy

Stupid question about escape characters

Postby midasal » Mon Oct 02, 2006 10:36 am

midasal
 
Posts: 7
Joined: Fri Sep 29, 2006 2:29 pm

Postby Batalf » Mon Oct 02, 2006 2:28 pm

Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm

Postby midasal » Mon Oct 02, 2006 2:51 pm

well that's what I did before - but I keep seeing tutorials saying I have to use <br>\n and the like?! Is this just a silly convention or is there any value to it?

And can I ask why you used 'writeln' for the first and 'write' for the second?
midasal
 
Posts: 7
Joined: Fri Sep 29, 2006 2:29 pm

Postby Batalf » Mon Oct 02, 2006 2:54 pm

No, can't see any reason why you should add \n after the <br> tag.

btw: writeln() writes it as standalone line anyway.
Batalf
Site Admin
 
Posts: 2160
Joined: Sat Oct 22, 2005 9:38 pm


Return to Javascript

Who is online

Users browsing this forum: No registered users and 2 guests

cron