How to pass value with apostrophe.

How to pass value with apostrophe.

Hi,
I have to run php file and I pass a value that can contains apostrofe and the variable is truncates just after apostrophe.


This is my line:

var IdFornitore = 2;
var ragione     = " L'eden della frutta";

  $("<form method=post action=' https://greenwindow.altervista.org/eventiFornitore.php'><input type=hidden name=a value='"+IdFornitore+"'/><input type=hidden name=b value='"+ragione+"'/></form>").appendTo("body").submit();
})

If ragione has not apostrophe everything is ok.

Can someone write for me how can I use it correctly.
Thamks in advance.

Tegatti