Escaping in widgets

wordpress

#1

How do you escape (or limit the html tags) in variables $before_widget and $after_widget in your widgets?
We know that everything should be escaped before print but how you deal with these widgets variables?