Results 1 to 10 of 10
Jul 2, 2010, 04:56 #1
Double and single quotes in JS inside HTML attributes
here's the issue, but first a foreword.
Similar problem if you choose to enclose the onclick argument in single quotes and happen to have a single quote JS escaped inside the string.
So, is there any other way of dealing with potential presence of single AND double quotes in the 'string' value, other than replacing them before by ' and " and then replacing them back inside DoSomething ?