alert(\'hi\');', '', ]; } public static function invalidDataUris(): Generator { yield [ 'foo' ]; yield [ 'bar' ]; yield [ 'data:' ]; yield [ 'data:;base64,foo' ]; yield [ 'data:foo/plain,foobar' ]; yield [ 'data:;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy=' ]; yield [ 'data:image/jpeg;base64,VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy=' ]; yield [ 'VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4=' ]; yield [ 'data:text;base64,SGVsbG8sIFdvcmxkIQ==' ]; } }