enable HTML tag {category_nicename} (category-slug)

I'd like to use {category_nicename} (category-slug) in a widget code.
This can be used like

    <div class="category category-slug">some category label</div>