S
Sisilla
Hello All,
I have a String object called "cargotype" that is assigned a value of
"20' Standard Container". I want to pass the cargotype object to a
javascript function, so I need to add a backslash before the
apostrophe to escape it. Ideally, I would like to pass "20\' Standard
Container" to the javascript function. I thought the following would
work-:
cargotype = cargotype.replaceAll("'", "\\'");
What am I doing wrong here? I appreciate any effort to help me. Thank
you for your time and consideration.
Sincerely,
Sisilla
I have a String object called "cargotype" that is assigned a value of
"20' Standard Container". I want to pass the cargotype object to a
javascript function, so I need to add a backslash before the
apostrophe to escape it. Ideally, I would like to pass "20\' Standard
Container" to the javascript function. I thought the following would
work-:
cargotype = cargotype.replaceAll("'", "\\'");
What am I doing wrong here? I appreciate any effort to help me. Thank
you for your time and consideration.
Sincerely,
Sisilla