JS to Html Conversion
This little utility allows you to paste (or type) in JavaScript code and convert to escaped Html, ready to be directly copied and inserted into an Html document. Many of the code examples throughout the website use this little utility (or a former version of it).
your JavaScript in the window below:
Add line numbers to the final output.
HTML Source
After conversion the Html source will appear in the box below. and paste this into your Html source:
<span class="lineno">1</span><span class="comment">/* Js2Html Conversion Utility: https://www.morphfx.co.uk */</span> <span class="lineno">2</span> <span class="lineno">3</span><span class="comment">// Please paste your code below //</span> <span class="lineno">4</span>
Preview
When combined with the style-sheet, the Html will render as follows:
1/* Js2Html Conversion Utility: https://www.morphfx.co.uk */ 2 3// Please paste your code below // 4


This page currently has no comments.