Remove whitespace between HTML tags in drupal 8/9 twig templates

By using Twig's {% spaceless %}{% endspaceless %} tag to remove whitespace between HTML tags, . This twig's tag will remove all whitespace between HTML tags, excluding spaces inside blocks of text or space inside an HTML tag.
copy-icon

Comments

Authors

Read Next