The HTML character encoder converts all applicable characters to their corresponding HTML entities. Certain characters have special significance in HTML and should be converted to their correct HTML entities to preserve their meanings. For example, it is not possible to use the character as it is used in the HTML syntax to create and close tags. It must be converted to its corresponding HTML entity to be displayed in the content of an HTML page. HTML entity names are case sensitive.

Reserved entities, symbols and characters in HTML

This table shows a list of reserved HTML entities with their associated character and description.

Code samples

Most programming languages provide a way to convert HTML entities to their associated character and vice-versa.

htmlentities (PHP 4, PHP 5)

Convert all applicable characters to HTML entities.

HttpUtility.HtmlEncode Method (String) .NET Framework 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

Converts a string to an HTML-encoded string.

public static string HtmlEncode( string s ) HTML encoding converts characters that are not allowed in HTML into character-entity equivalents; HTML decoding reverses the encoding. For example, when embedded in a block of text, the characters and > are encoded as and > for HTTP transmission.

Đang xem: Prevent encoding of existing html entities (convert & to &amp


Xem thêm:

Wikipedia: Character entity reference

In the markup languages SGML, HTML, XHTML and XML, a character entity reference is a reference to a particular kind of named entity that has been predefined or explicitly declared in a Document Type Definition (DTD). The “replacement text” of the entity consists of a single character from the Universal Character Set/Unicode. The purpose of a character entity reference is to provide a way to refer to a character that is not universally encodable.Bạn đang xem: Unicode to html entities converter

Xem thêm: Chủ Đề: Xin Phần Mềm Osmonitor Full Crack Osmonitor Monitoring Software


OpinionatedGeek HTML Encoder The answer as to why Firefox”s release cycle is shortened: Mozilla love cakes

Firefox 4 has finally been released after an amazing number of Beta versions…

Windows 3.11 for the Web 2.0

A few web based operating systems have emerged the last few years including…

Microsoft is not ready to let Silverlight loose against Canvas

Microsoft is honest in the recent blog post about using one platform to build…


Write and manage your documentation from an easy to use yet powerful help authoring environment.


Fast and easy high quality screen capture software for Windows 7, Vista and XP.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *