In the admin area, sometimes sloppy HTML code gets put in there and they don't put quotes around HTML attributes, ie:

HTML Code:
<a href=www.imanidiot.com>I have no idea what I'm doing</a>
This HTML is stored in a table in the database. How can I echo that HTML with quotes around attributes so it is like:

HTML Code:
<a href="www.imanidiot.com">I have no idea what I'm doing</a>