JS Escape Sequence | HTML Entity Last Updated : 27 Jul, 2020 Comments Improve Suggest changes Like Article Like Report There are certain symbols in HTML that always seem to break your program. These include math, currency, greek alphabet symbol, etc. Either they are not available in your keyboard or browser to interpret them differently to what you intended. So here is the list to HTML code for different symbol and JavaScript escape sequence for the same. Special Symbol: Char HTML Code JS Escape Sequence ! ! \u0021 " " \u0022 # # \u0023 $ $ \u0024 % % \u0025 & & \u0026 ' ' \u0027 ( ( \u0028 ) ) \u0029 < < \u003C > > \u003E Capital Letters: All the letters starting from A and ending at Z has special HTML code and JS Escape Sequence. In HTML, they start with A, and end at Z, and in JavaScript they increase from A to I with \u0041 to \u0048 respectively and then from J to O representation changes to \u004A to \u004F. Then from P to Y, the value increases from \u0055 to \u0059. Finally for Z we have \u005A. Char HTML Code JS Escape Sequence A A \u0041 B B \u0042 C C \u0043 D D \u0044 E E \u0045 F F \u0046 G G \u0046 H H \u0047 I I \u0048 J J \u004A K K \u004B L L \u004C M M \u004D N N \u004E O O \u004F P P \u0050 Q Q \u0051 R R \u0052 S S \u0053 T T \u0054 U U \u0055 V V \u0056 W W \u0057 X X \u0058 Y Y \u0059 Z Z \u005A Numbers: All the numbers starting from 0 and ending at 9 has special HTML code and JavaScript Escape Sequence. In HTML they start with 0, and end at 9 and in JavaScript they start from \u0030 and end at \u0039. Char HTML Code JS Escape Sequence 0 0 \u0030 1 1 \u0031 2 2 \u0032 3 3 \u0033 4 4 \u0034 5 5 \u0035 6 6 \u0036 7 7 \u0037 8 8 \u0038 9 9 \u0039 Small Letters: All the letters starting from "a" and ending at "z" has special HTML code and JavaScript Escape Sequence. In HTML, they start with a, and end at z, and in JavaScript they increase from "a" to "i" with \u0061 to \u0069 respectively and then from "j" to "o" representation changes to \u006A to \u006F. Then from "p" to "y", the value increases from \u0070 to \u0079. Finally, for z, we have \u007A. Char HTML Code JS Escape Sequence a a \u0061 b b \u0062 c c \u0063 d d \u0064 e e \u0065 f f \u0066 g g \u0067 h h \u0068 i i \u0069 j j \u006A k k \u006B l l \u006C m m \u006D n n \u006E o o \u006F p p \u0070 q q \u0071 r r \u0072 s s \u0073 t t \u0074 u u \u0075 v v \u0076 w w \u0077 x x \u0078 y y \u0079 z z \u007A Math Symbols ° degree ° ° ∞ infinity ∞ ∞ ‰ per-mille ‰ ‰ ⋅ multiplication dot ⋅ ⋅ ± plus-minus ± ± † hermitian † † — - — — ¬ - ¬ ¬ µ Micro (mu) µ µ ⊥ falsum ⊥ ⊥ ∥ parallel ∥ ∥ Comment More infoAdvertise with us Next Article JS Escape Sequence | HTML Entity M MohdArsalan Follow Improve Article Tags : JavaScript Web Technologies HTML HTML-Misc Similar Reads HTML Entity Parser Given a string str which has various HTML Entities in it, the task is to replace these entities with their corresponding special character. HTML entity parser is the parser that takes HTML code as input and replaces all the entities of the special characters by the characters itself. The special cha 15+ min read HTML Entities In HTML, there are reserved characters, such as < (less than) and > (greater than), which are used to define tags like <p>. However, if you use these reserved characters within the content, browsers may misinterpret them as part of the tags.HTML Entities were introduced to avoid this. Re 4 min read How to Escape HTML in NodeJS EJS View ? When working with web applications in Node.js using the EJS templating engine, it's important to ensure that user-generated content containing HTML is rendered safely. Otherwise, it can lead to security vulnerabilities such as cross-site scripting (XSS) attacks. Prerequisites:HTMLNodejsEJSWhy do we 3 min read Underscore.js _.escape() function Underscore.js _.escape() function is used to escape a special character string from inserting into HTML. Some of the strings that get escape are "&", ">", "<", "''", etc. Note: Some special files are needed to be included while using this code directly in the browser. It is very necessary 1 min read HTML nonce Attribute The HTML nonce attribute is a global content attribute that defines a cryptographic nonce(" number used once "). It is used by Content Security Policy(it is an additional layer of security that helps to detect and mitigate certain types of attacks like data injection attacks) to check whether a give 3 min read HTML | <script> charset Attribute The HTML <script>charset Attribute is used to specifies the character encoding used in an external script. Syntax: <script charset="charset"> Note: HTML <script>charset Attribute is not supported by HTML5. Attribute Values: It contains the value charset which specifies the characte 1 min read How to escape & unescape HTML characters in string in JavaScript? Escaping and unescaping HTML characters is important in JavaScript because it ensures proper rendering of content, preventing HTML injection attacks and preserving text formatting when displaying user-generated or dynamic content on web pages. Escape HTML Characters< : <> : >" : 3 min read Backbone.js escape Model In this article, we will see the Backbone.js escape() model. The Backbone.js escape() model is used to return or get the HTML escaped version of an attribute in the given model. It is similar to a get() model. While interpolating the data from the model to the HTML, use the escape that will help to 2 min read What is character entities in HTML ? In this article, we will learn about HTML character entities and how to use them. HTML character entities are basically a set of characters (entity) used to represent few characters reserved by the HTML, especially invisible characters or characters difficult to type out using a regular keyboard. HT 2 min read Like