![]() |
| Convert HTML to XML |
Introduction
Here is the Best Tool to Convert HTML to XML Code. So today in this topic we provide information regarding this tool and also give the source code.
This tool is works on both WordPress and Blogger platform. Those users who read this article carefully they create this tool or set up this tool very easily.
Demo
Here is the live demo that how this tool works. Currently we use Blogger but you can easily set up this tool in your WordPress also.
Source Code
- First Create a new page
- Go to HTML View
- Copy All Codes which is under below
- Save it.
<div style="text-align:center; border: solid blue 1px; padding: 2px; background: #c4fdff">
<div style="text-align: center;">
<div style="border:solid red 2px;padding:1px; border-radius: 40px; background: linear-gradient(yellow,white);">
<b><span style="color: red;">Enter Your</span> <span style="color:dodgerblue;">Code Below: </span></b></div></div><br />
<div style="text-align: center;">
<script type="text/javascript">// <![CDATA[
function $(id){ return document.getElementById(id) } var char2entity = { "'" : ''', '"' : '"', '<' : '<', '>' : '>', '&' : '&'}; function encode_entities(str) { var rv = ''; for (var i = 0; i < str.length; i++) { var ch = str.charAt(i); rv += char2entity[ch] || ch; } return rv;} function do_encode(e){ $('dst').value = encode_entities(e.value)}
// ]]></script>
<textarea cols="40" onchange="do_encode(this)" onkeyup="do_encode(this)" rows="10" style="font-family: monospace; height: 10em; width: 95%;"></textarea><b> </b><br /><br />
<div style="border:solid red 2px;padding:1px; border-radius: 40px; background: linear-gradient(yellow,white);">
<b><span style="color:dodgerblue;">Online Parsed Code</span>♥</b><b><span style="color:red;">Get coding Below:</span></b></div></div><br />
<div style="text-align: center;">
<textarea cols="40" id="dst" onclick="this.select()" onfocus="this.select()" readonly="readonly" rows="10" style="font-family: monospace; height: 10em; width: 95%;"></textarea><br />
<br />
</div>
</div>
Basic Uses
When we have to put Some HTML Codes in our blog then we have to Convert all HTML code to XML code. So This tool is help us to Convert HTML to XML very easily.
We just try to give attractive design in this tool , You may change the whole design according to yourself.
Share this
ReplyDelete