I'm trying to pass a simple URL to a view within a play framework app, however when passed as a string, the & in the url is changed to & which causes the URL to not work.

If I change the argument to Html, i.e @(url: Srting) to @(url: Html), then I get an error when I try to pass the url as string to view.render() method.

How can I convert the url into Html and pass it as that?

Edit
Report