It would be a good idea to evaluate why you want to hide your source code. The only safe and effective why to hide your HTML is to not put it on the internet.
PHP, on the other hand, is a server-side language that does not get transmitted to the browser ever, so it is safe from prying eyes. All people will see is the resultant HTML in the source.