Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Beautify HTML

Security covered Under active development 3 sites

The Beautify module processes Drupal's HTML output to make it more readable or compact using configurable beautifier plugins. It supports options like Tidy and HTML Beautify, and allows for custom beautifier plugins.

Make your HTML source code pretty and/or compact.

The Beautify module buffers the HTML output of Drupal and processes it through a formatter - aka beautifier. Beautifiers are configurable and extensible plugin. You can create your own beautifier in your custom module too if you want.

Available beautifiers:
- Tidy (requires the Tidy PHP extension installed on your environment)
- HTML Beautify library (View the Github repo

How to install

  • Download the module
    composer require drupal/beautify
  • Enable the module
    drush en beautify
  • Go to admin page Admin > Config > Development > Beautifiers
  • Select the default beautifier, edit and save the configuration

Similar modules

Slack channel

Join the discussion on Slack in the #beautify channel. Details on how to connect to Drupal Slack here.

In memoriam of Richard Burford, original developer of this module whom company - Freestyle Systems - sponsored the development of the D5 and D6 versions.

Drupal 8–10 · not 11

Ask your assistant about Beautify HTML

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.5 Stable 8–10 Apr 25, 2024
1.0.4 Stable 8–10 Apr 25, 2024
1.0.3 Stable 8–10 Apr 24, 2024