renderTags function

Render tags into HTML