Its probably just a normal function of the serialiser/deserialiser to HTML encode certain characters to make the HTML source validate against your source DTD. Its perfectly valid and shouldn't cause any issues in your rendered HTML content. Its the slightly more valid code for an apostrophe character in HTML. ' is the other valid encoding for an apostrophe (see link)
Is there any reason you dont want this code in your HTML source?