Spoiler

Component ID

185762

Component name

Spoiler

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

8192

Component created

Component changed

Component body

This module allows users to hide potential "spoiler" content by inserting them between [spoiler][/spoiler] tags. These tags will be converted to HTML by this filter. If JavaScript is available, then a button will be presented to the user which can be clicked to display the content. If JavaScript is unavailable, then the relevant CSS rules will set the foreground and background colours to the same value, thereby rendering the text invisible, until highlighted.

The Drupal 7 version also provides a wysiwyg editor button.