-1

I am using the jQuery cookieplugin, and want to save the values from a CKEditor into a cookie, to be able to make a draftfunction, a bit similar to the one on StackOverflow.

The CKEditors content can contain html, so is there a way to htmlencode the HTML-data with jQuery, so it can be passed to a cookie?

Dofs
  • 13,655
  • 25
  • 72
  • 120

1 Answers1

0

Use encodeURIComponent() and decodeURIComponent()

avetarman
  • 1,226
  • 9
  • 8