Development & Design 81

HTML special character conversion

Converts five special characters in HTML into or restores as entities.

Input

The example value has been entered. Check it immediately or change the value.

Run with Ctrl or ⌘ + Enter

Input is processed in the browser. Refreshing returns a sample value.

Result

Check or change the value using the example value result.

Decodes only five basic entities; does not execute or render HTML.

Share result

Share the tool link and result text together. No URL is included in the result. Check the below content and then share it.

Calculation·conversion criteria

Converts basic HTML special characters into text representation.

&, <, >, double quotes, single quotes — entity conversion

Input example

<b> → &lt;b&gt;

<div> encoding becomes <div>. The result is displayed as text that cannot execute code, so HTML is not rendered during conversion.

How to use

  1. Use the entered example value or change the input or direction items.
  2. Click Verify result and check the following result.
  3. Result can be copied if needed.

Frequently Asked Questions

Are all name entities or numeric entities restored?

No. This tool provides only basic conversions for ampersand, two brackets, double quotes, and single quotes. It does not replace a full HTML parser or input cleaning tool.

Calculation criteria and reference materials

The calculation formula and scope of this tool are disclosed in the above description. Examples can be checked by substituting input values into the formula or following the specified string and calendar handling rules.

Verification of calculation criteria: · Calculation·verification principles · Report errors