I have to call some Javascript functions from my Java code and some strings as parameter. The string may contain new line and double/single quote. So I want to escape the new line and double quote using java so that it can be passed smoothly to JS method? How to do the same?
Aucun commentaire:
Enregistrer un commentaire