Let me first start off by stating that I did NOT want to steal this gentleman’s code. I was simply viewing the source of a web template that he was selling to see how clean the markup was written and to examine the floats and CSS, etc.
But when I viewed the source for the page linked below, it appears that he is using JavaScript to write the HTML from a bunch of gobble-de-gook. I am assuming that it has been encrypted so that people like me cannot view the source in any way, shape or form.
This brings me to my question… how did he do it? How can I do this to my sites? Can someone take a look at the link below and submit a response on what it is that he has done to hide the HTML and also how I can recreate this technique?
After reading everything here, I was quite intrigued.
I’ve had a quick glance around with Google, and it seems there are lots of tools out there (heres one) to encrypt your code, however as pmw57 said, it’s easy to get to the actual code.
I used the Web Developer toolbar in firefox, ‘View Generated Source’, and it’s all there for the taking!
I just realised right now that in Google Chrome from the built-in Developer Tools you can right-click on any element node and edit or copy as HTML. Neat!
If you want to find Developer Tools in Google Chrome, there are a number of ways, including:
right-clicking on the page and selecting Inspect Element
or, by using Ctrl+Shift+I
or, by going to Tools -> Developer -> Developer Tools