The following screenshot shows the uncleaned and cleaned HTML code.
Dirty Markup lets you specify a custom print margin, add line breaks, and set indentation manually. You can also change the theme of the interface either as “Dark” or “Light” for better visibility.
Note: This online tool is very useful for tidying up HTML code generated by Microsoft Word.
The website interface is pretty simple and doesn’t require any sign-up, which means you can simply go to the homepage and start using it.
Select code type to clean:
Paste code to clean:
All the code tabs have different options than one another, which we will discuss below.
Use “HTML” tab with different options:
The “HTML” tab comes with various options like you can change output as “Full Page” and “Code Fragment”, set indentation, change the theme, and assign print margin manually. You can also add empty lines, allow proprietary attributes, and optimize the code for MS Word HTML. The following screenshot shows the various options of “HTML” tab.
Use “CSS” tab with different options:
In “CSS” tab, you will only be able to change the theme, set indentation and print margin manually. But the process of pasting the code and cleaning them is similar to HTML tab. The following screenshot shows various options of “CSS” tab.
Use “JS” tab with different options:
In “JS” tab, you can assign braces types, set indentation, change the theme, and assign print margin manually. It also lets you do some advanced stuff such as break chained methods, keep array indentation, and preserve empty lines. The following screenshot shows different options of “JS” tab.
My Final Verdict:
Try the website from the link here.