Updated functionality to create summary, remove HTML.