summarize strings or html strings