Tools online replace special characters with HTML Entities and vice versa
Input HTML Escape Or Unescape
Replace < > "
Escape special characters (& and non latin chars)
Replace newline with <br/>
Replace space with
Result with HTML entities:
Why replace special characters with html entities?
< and > is used to identity tags in HTML, for example in the html code to insert <example < in <p> One can not write code
<p><example><p> which have to write
<p><example><p>.But they are not the only ones that are problematic, every character with an UTF-8 code above 127 is not interchangeable between the "normal" Western ISO-8859-1 encoding and UTF-8.
A solution could be to always encode text using UTF-8, but browsers, proxies, web servers etc. is a potential encoding disaster waiting to happen.
The HTML entities however, will always work.
Which characters should I replace in HTML?