Wordpress doesn't display img tags with data-url

When using wordpress post uploader and you have inserted images that are using data-url.

When viewing posts the images do not display and appear missing.

Add this code to the functions.php in your Wordpress install directory.

It will allow data images to load.

add_filter('kses_allowed_protocols', function ($protocols) {
    $protocols[] = 'data';

    return $protocols;
});