Tiago Simões wrote:
You can encapsulate the JavaScript above in a block (as shown in the screenshot) and use it as a widget.
If you meant to use more than one time, this will enable you to create a reusable piece of code.
I was thinking more about a "one-time" injection. The old "non-escaped" expressions were more practical :)
But after a little thought, I understand that injecting HTML is not a good practice (for obvious reasons) and so, it should be used only rarely. So, yes, I accept your solution ;D
Thank you!
Cheers!