# Cleaning up HTML markup from external sources

**URL:** <https://www.ruby-forum.com/t/cleaning-up-html-markup-from-external-sources/161643>\
**Category:** Rails\
**Created:** [February 28, 2009, 9:10am UTC](https://www.ruby-forum.com/t/cleaning-up-html-markup-from-external-sources/161643 "2009-02-28T09:10:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgreenly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@mgreenly](https://www.ruby-forum.com/u/mgreenly)\
**Post date:** [February 28, 2009, 9:10am UTC](https://www.ruby-forum.com/t/cleaning-up-html-markup-from-external-sources/161643/1 "2009-02-28T09:10:14Z")

</div>

I’m using acts\_as\_amazon\_product to pull content about books I own.  
This makes it very easy for me to pull down lots of data about books I  
own without having to enter all that stuff myself.

It even includes a description of sorts. The problem is, while this  
is some form of HTML markup, it is not XHTML. For instance, I see  
things like

- …
- …
