Problem with escaped characters in attributes
Make sure you aren't check_plain()ing the value before calling it, eg, don't do:

... theme('image', array('path' =&gt; 'test.jpg', 'alt' =&gt; check_plain($foo));


or otherwise use a $value that has been processed by any 'safe' filters.