Can I avoid HTML formatting being escaped during API import?
You can edit /CRM/Utils/API/HTMLInputCoder.php:
CRM_Utils_API_HTMLInputCoder->getSkipFields returns a list of fields that will be skipped on encoding. Add an entry for your custom-field to this list prevents the html-input from being escaped. The entry must be "custom_" + custom-field-id.