I have a problem sending JSON to the server and getting error in a specific case. I'm not sure if this is a frontend fix or backend, but couldn't find anything online on that.
In case I send:
CompanyName: "Bobs company"
request goes through, however if I send:
CompanyName: "Bob's company"
I get an error. Is there a way to fix that problem on frontend? I get the name by requesting value of the input :
onChange={(e) => {
setCompanyName(e.target.value);
}}