HTML encode string conversion

HTML encode string conversion




home solutions 

ASP Server.HTMLencode - PHP htmlspecialchars

Special characters that you wish to use on HTML pages may be displayed differently than intended if they are not converted. For example, "smaller than" and "greater than" signs < > should be written as &lt; and &gt; otherwise they will be interpreted as HTML tags.

In Microsoft ASP it is always safest to send output to the browser using:

<%
Server.HTMLencode("String")
%>

In PHP you can do the same by using the following syntax which is the server.htmlencode equivalent:

<?
htmlspecialchars("String");
?>  

If you are not using server-sided code on your website you can use the following tool which converts any given text to its HTMLencoded (or htmlspecialchars) equivalent. The tool produces HTML code which you can easily copy and paste to your own web pages.

Enter the HTML for HTMLencode conversion below:


Click here if you want to scramble HTML code

If you are a designer and in need of help by one of the programmers from Voormedia, please do not
hesitate to contact us by phone or e-mail.


Copyright © 2008 Voormedia