add title for html (bug: last node text not included)