Custom Gutenberg Block and unfiltered_html capability

The recommended way of using RichText Component inside save function is –

     <RichText.Content
            tagName="p"
            style={ styles }
            className={ className ? className : undefined }
            value={ content }
            dir={ direction }
        />

See, how this core paragraph block is doing it. Instead of using normal HTML use RichText Content on text fields