Added support for custom events via shortcode filters.

Now using esc_attr() as suggested.

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>