Skip to content

MarusCio/HTMLPrettyPrinter-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

HTMLPrettyPrinter-Script

A Bash script that extracts and automatically indents the tag structure (the DOM skeleton) from an HTML file, deliberately ignoring the text content.

It is the perfect tool for quickly analyzing the structure of a webpage, checking the depth of nested elements, or stripping away filler text to reveal the bare HTML architecture.

Example

  • Input:
<html><body><h1>Title</h1><p>Hello</p></body></html>
  • Output
<html>
	<body>
		<h1>Title
		</h1>
		<p>Hello
		</p>
	</body>
	</html>

About

A shell script that beautifies HTML files by automatically applying indentation to reflect the DOM hierarchy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages