made some changes to getSummary() for document item in order to show with html tags