This is the correct way to select the contents from before and after the p.