Vaandu
Vaandu

Reputation: 4945

Java script : double quote text issue

I have a link which has navigateToBusiness("check & ' ""). Due to this double quote, script is not getting called. The value passed check & ' " is dynamic.

Please help. Thanks in advance.

Upvotes: 0

Views: 124

Answers (2)

jAndy
jAndy

Reputation: 236192

You can escape special characters with a leading \

navigateToBusiness("check & \' \"")

Upvotes: 1

Lemex
Lemex

Reputation: 3804

You may need to escape the quote,

Read more here: Escape quotes in JavaScript

Hopefuly this helps

Upvotes: 0

Related Questions