How do you customize what value a Custom FieldType returns to a template
Run your HTML string through getRaw before sending it back to the template...

return TemplateHelper::getRaw($output);


This will basically "pre-raw" your HTML string.