As I mentioned in my comment, there is simply no way to hide html, css or javascript. The example you have shown above it not hiding or encrypting anything. All you have to do, to get the 'real' html markup, is using for example PHP's urldecode function. Also, there is no reason to do so. If you have something, that no one should see, dont put it on the client side.
You can see its result here: http://pastebin.com/eZZTUNYA
Formatted version: http://pastebin.com/Gzg7jxT6
Short said: Dont even try to hide content. You cant.
If you still want to do, what your example did, you can do it with PHP as I said or in JavaScript directly. A PHP version would be:
$html = 'YOUR HTML CODE';
print urlencode($html);
Keep in mind, that because JavaScript has to decode it every time, it can cause higher loading times.