Zend certified PHP/Magento developer

Magento 2 code validation “Unescaped output detected.” when calling Product Attributes in phtml

I’ve created Magento 2 modules, now when I trying to validate my code with Magento code validator and I`m getting ‘Unescaped output detected’ in phtml templates where calling custom HTML attributes.

The problem is that I can’t use escapeHtml method because my content is Html and shouldn’t be converted to string.

I want to know how can I fix this issue