In this howto you're gonna learn how you can escape HTML characters, nice and easy using PHP. This is useful for example to prevent users enter malicious HTML or javascript code into your site using the public forms like guestbooks or message boards. Also this can be useful if you want to embed code into your page without being translated by browsers into HTML elements corresponding. Our site also offers an Online Escape HTML Characters Tool!