Remove Whitespace Between HTML Tags Using PHP

1
2
<?php
/**
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This function looks for 2 or more consecutive whitespaces between `HTML` tags and removes just the white-space. It's most-effective when needing to remove unnecessary line-breaks that come as a result of keeping code readable during development.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.