I need to pass a html message through url query string. But i am getting error. I have tried encodeURIComponent() , encodeURI(), escape()
    var uriMessage = encodeURIComponent("<p>This is my test message..</p>");
    window.open("/controller/action?param=" + uriMessage, "_blank");
Any help will be really appreciated.
 
    