Example of single quotes not being written out correctly.
Code as entered:
<a href='http://creativecommons.org/licenses/by/2.0/' target='_blank'><img src='http://i.creativecommons.org/l/by/2.0/80x15.png' alt='Creative Commons Attribution 2.0 Generic License' title='Creative Commons Attribution 2.0 Generic License' border='0' align='left'></a>
After a save the code looks like this:
<a href="http://creativecommons.org/licenses/by/2.0/" target="_blank"><img src="http://i.creativecommons.org/l/by/2.0/80x15.png" alt="'Creative" Commons="Commons" Attribution="Attribution" 2.0="2.0" Generic="Generic" License'="License'" title="'Creative" Commons="Commons" Attribution="Attribution" 2.0="2.0" Generic="Generic" License'="License'" border="0" align="left" /></a>
I manually increased the field size VARCHAR custom field in the Db table and the code seems to handle the bigger size OK.