Wordpress doesn't display img tags with data-url

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

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

    return $protocols;
});