I have a link that I dynamically create that looks something like this:
<a onclick="Edit('value from a text column here')" href="javascript:void(null);">Edit</a>
using the "Edit" function, then passing the passed value and placing it in the Rich Text text editor. This works well, unless there is one quote in the text to be transmitted. The obvious problem is that the link then looks something like this:
<a onclick="Edit('I'm a jelly donut')" href="javascript:void(null);">Edit</a>
Any suggestions on what I can do? I would prefer not to go too far from the structure that I am currently using, because it is a bit of a standard (and maybe standard sucks, but this is another question at all).
Note. I use ASP as my server language.
source
share