As this is an input filter, it will only work where input filters are applied.
This input filter must come after the HTML filter, and should go after the convert line breaks filter.
To make a section of text collapsible, surround it with
[/collapse]. You may nest the
[collapse] tags to have collapsible sections within collapsible sections.
To make the text collapsed initially, start with
[collapse collapsed]. As a shortcut, you may use
[collapsed], as this will be expanded into
You may supply a title to be displayed in two ways. There is a
title= option for the
[collapse] tag, or the module will find the first header tag and use that instead. New in 6.x-2.5, you can control the default title used if one isn't specified.
Also supported is a
class= option, which allows you to add CSS classes.
Older versions had a slightly different specification, which is still supported.
Read the filter tips for more information.