popup-imagemanager.js quotes in alt and title fix

Added htmlEntities method to replace quotes and brackets in alt and title attributes. Is important if quotes are used in image alt attribute.