title: Decoding variable passed via controller to view in Play
body: <p>What is the right way for decoding the special characters in variables that are passed from controller to view via render view call. I am passing a model to the view like this:</p>
  <pre><code>return ok(create_user.render(user, userForm));
  </code></pre>
  <p>Now my create_user view has:</p>
  <pre><code>@(user:User, userForm : Form[User])
  </code></pre>
  <p>I am trying to use fields of User in JavaScript, but I am getting values which have invalid characters appearing for special characters (e.g. &amp; is replaced with &amp; amp;).
  I am passing the evaluated values back to the controller after form submission, so wanted to check that should I decode my values at JavaScript or controller level. Also, what is the correct way of doing this.</p>
  <p>Thanks in advance.</p>