use the new html_writer api for span and div
Merge pull request #104 from ds125v/html_writer_api

use the new html_writer api for span and div