Ive got a text area which clients can enter notes (on their clients).
But if the clients enters text that contains ‘ then it breaks.
I had the same problem with new linesa \r \n but fixed it with this
notes:'@Html.Raw(client.Notes.Replace(Environment.NewLine," 
"))'});
How do I fix the ‘ problem?
Example please
thanks
If the issue is when you interpreting the text back into the Dom with JQuery then you could html encode all your string with a function like this