This tiny module depends on and extends the lovely HTML Title module in two ways:
- it allows a handful of HTML tags that won't be added to HTML Title, these being
a, br, div, spanin particular, as well asmark, qandsmall - it works on block titles, as well as node titles
From the HTML Title project page:
The HTML Title module allows a limited set of HTML markup (
abbr, em, sub, sup, b, i, strong, cite, code, bdi, wbr) to be used in node titles. It filters all other markup from titles to prevent XSS vulnerabilities or irrational nesting (e.g., links within links).
HTML Title brought us limited markup for our node titles. Now you can trash those node titles and your block titles some more, while remaining fully secure.
Installation
Install HTML Title Trash like any other Drupal module. Use Drush if you wish.
Visit admin/config/content/html_title, the original configuration page, to configure the HTML elements you want to allow, in node and block titles on your site.
Then insert desired HTML elements into your node and block titles!
Notes
You may use class names: <div class="centered big-red">...</div>
You cannot use styles: <div style="color:red">...</div>
References
Styling the Unstylable: node titles & block titles
Love trashy modules? Consider the others in this series: Label Trash, Table Trash and Table Tidy.
Actually Site Name and Slogan Rotator is pretty trashy, too.
Project information
- Project categories: Content editing experience, Content display
119 sites report using this module
- Created by rdeboer on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.

