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

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

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

sql server ce - Is there some way to make sqlce3.5 and 4.0 co-exist in the C# project -