[Solved] Any ways to hide HTML code (no obfuscation)?


There is no way you can hide the HTML source since the code is what the browser get as instructions from the server.

But you can minify and uglify your JS/HTML in such a way that they would look convoluted to human eyes. This effectively hides any meaningful variable and function names and would make it difficult for someone else to reproduce the code in a readable way. Google for minify and uglify – you will get tons of solutions for this purpose.

And there are some server side solutions too emerging. Thosecan process client side scripts and render the markup in the server side itself before sending to the front end.

Angular Universal is one such framework.

solved Any ways to hide HTML code (no obfuscation)?