HTML Encode is easy to use tool to encode plain HTML to encoded html which helps to show html text in HTML in <pre> tag. Copy, Paste and Encode.
HTML
<!DOCTYPE html> <html> <head> <title>Largest companies by market cap — US Stock Market</title> <meta charset="UTF-8" /> </head> <body> <h1>Apple : 2037 Billion</h1> <h2>Microsoft : 1624 Billion</h2> <h3>Amazon : 1611 Billion</h3> <h4>Google : 1058 Billion</h4> <h5>Alibaba : 826 Billion</h5> <b>This data is as of 21 Sep 2020.</b> </body> </html>
Encoded HTML
<!DOCTYPE html> <html> <head> <title>Largest companies by market cap — US Stock Market</title> <meta charset="UTF-8" /> </head> <body> <h1>Apple : 2037 Billion</h1> <h2>Microsoft : 1624 Billion</h2> <h3>Amazon : 1611 Billion</h3> <h4>Google : 1058 Billion</h4> <h5>Alibaba : 826 Billion</h5> <b>This data is as of 21 Sep 2020.</b> </body> </html>