Revised to wrap likely paragraphs in <p> tags.