Cleaning untrusted HTML markup
RSS and Atom feeds embed HTML markup that readers should display correctly. For web based readers, just including the HTML is very dangerous since an evil feed could easily embed Javascript code.
Mozilla made bleach, a nice library that has a strict whitelist of HTML tags and attributes that can safely be used within a web page.