Skip to content

Tool to make HTML code to be displayed on a web page as plain text without being rendered as a component.

Notifications You must be signed in to change notification settings

migueweb/html-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTML to HTML

If you have ever tried to display HTML code as plain text on a page you will have noticed that it is displayed as an HTML component, and to display it you need to replace "<" with "&‎lt;" in all tags but now you can do it automatically with HTML to HTML.

What is?

HTML to HTML is a tool to convert HTML, SVG, XML code to plain text in a HTML page using character entities.

HTML code:

<div class="card" style="width: 18rem;">
  <img src="..." class="card-img-top" alt="...">
  <div class="card-body">
    <h5 class="card-title">Card title</h5>
    <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
    <a href="#" class="btn btn-primary">Go somewhere</a>
  </div>
</div>

HTML code converted:

&lt;div&nbspclass="card"&nbspstyle="width:&nbsp18rem;"&gt;<br>&nbsp&nbsp&lt;img&nbspsrc="..."&nbspclass="card-img-top"&nbspalt="..."&gt;<br>&nbsp&nbsp&lt;div&nbspclass="card-body"&gt;<br>&nbsp&nbsp&nbsp&nbsp&lt;h5&nbspclass="card-title"&gt;Card&nbsptitle&lt;/h5&gt;<br>&nbsp&nbsp&nbsp&nbsp&lt;p&nbspclass="card-text"&gt;Some&nbspquick&nbspexample&nbsptext&nbspto&nbspbuild&nbspon&nbspthe&nbspcard&nbsptitle&nbspand&nbspmake&nbspup&nbspthe&nbspbulk&nbspof&nbspthe&nbspcard's&nbspcontent.&lt;/p&gt;<br>&nbsp&nbsp&nbsp&nbsp&lt;a&nbsphref="#"&nbspclass="btn&nbspbtn-primary"&gt;Go&nbspsomewhere&lt;/a&gt;<br>&nbsp&nbsp&lt;/div&gt;<br>&lt;/div&gt;

Author

Miguel Amador

About

Tool to make HTML code to be displayed on a web page as plain text without being rendered as a component.

Topics

Resources

Stars

Watchers

Forks