title: Un-escape JavaScript escaped value in Java
body: <p>In our web service we set a cookie through JavaScript which we read again in Java (Servlet)</p>
  <p>However we need to escape the value of the cookie because it may contain illegal characters such as '&amp;' which messes up the cookie.</p>
  <p>Is there a transparent way to escape (JavaScript) and unescape again (Java) for this?</p>