javascript - I would like to not expose some of details in plain HTML code -


In my application, I want to assign some PHP values ​​to the JavaScript variable. So I used to follow the code

  "; & Lt; / Script & gt;   

But the problem is that I want to hide the details from the HTML source view. The description will now appear in the HTML view source such as

  var my_js_var = "this is my php value";   

How can I hide such details from the HTML source?

You need to have hash / encrypt for use in the customer and the server is processed upon request Verify hash at size.

Comments

Popular posts from this blog

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

sql - PostgreSQL automatically update row at specific date -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -