account for content wrapped in <p> tags