. Let's see how does the HTML source of the equation below looks like with and without entity_encoding: bR ' cos2 m x'' cos m R '' cos2 + m R ' 2sin cos m g sin bR ' sin2 = m R '' sin2 + m R ' 2sin cos . How can I set the default value for an HTML element? Reserved characters These are special characters such as the dollar sign, ampersand, plus, common, forward slash, colon, semi-colon, equals sign, question mark, and "at" symbol. Creating a table for Html Entities. HTML Symbols Is it correct to say "The glue on the back of the sticker is dying down so I can not stick the sticker to the wall"? Hi @nana001. htmlspecialchars ( string $string, int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401, ?string $encoding = null, bool $double_encode = true ): string Certain characters have special significance in HTML, and should be represented by HTML entities if they are to preserve their meanings. In HTML, XML and XHTML; you can either use the Numberic Character Reference (NCR) or Named Character Reference to encode special characters into an HTML symbols. While other source cleaning options take effect when you hit the Clean HTML button, this one is making effect all the time when you modify the visual editor. This page contains a list of HTML special characters. @PoulBak This was just an example, like I'll run into html tags scattered throughout the string among special characters, so I don't think I can just append the tags to the end. The special Characters <, > are converted into escaped equivalent like < and . Add a new light switch in line with another switch? var encodedHtml = HttpUtility.HtmlEncode("Encode this: , &, but not this: "). Reserved Characters Encoding Any character that is not an alphabetic character, a number, or a reserved character being used needs to be encoded. 16-bit Unicode Transformation Format is a variable-length character encoding for Unicode, capable of encoding the entire Unicode . : @ & = + $ - _ . For example, it is not possible to use the < character as it is used in the HTML syntax to create and close tags. ~ * ' ( ) # that can have special meanings. ! URLs can only be sent over the Internet using the ASCII character-set. Can several CRTs be wired in parallel to one oscilloscope circuit? UTF-8 can represent any character in the Unicode standard. This is what I've tried so far: var encodedHtml = HttpUtility.HtmlEncode ("Encode this: , &, but not this: <b>") Console.WriteLine (encodedHtml); Where should I put