-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
  • 15,645
  • 26
  • 73
  • 120

1 Answers1

0

Use encodeURIComponent() and decodeURIComponent()

avetarman
  • 1,234
  • 9
  • 8