View Full Version : slashes
10-14-2005, 07:03 PM
how do I add slash "\" and backslash "/" to a string?
10-14-2005, 07:23 PM
The backslash is the escape character, so you'll have to escape it, but the forward slash you should have no problems with:
var str = "this is a backslash \\, this is a forward slash /";
You can add a forward slash as normal but a back slash is escaped with another backslash
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.