I'm creating a collapsible fieldset on my home page and have put the following code in a block (structure > blocks):
It actually works what I did using the 'Full HTML' text format. I did it this way though only because I don't know the preferred way.
I imagine this would normally be done (for security reasons or something...) by creating a module or via a preprocess function.
Am I wrong to second guess myself here? Maybe it's standard practice to do what I've done above.
Any guidance is appreciated. Thanks.