Rubber-like discharge???

So I’ve never had discharge that would ”harden” like this, The stringy part is very flexible and soft like rubber... anyone got an idea what this could be? Or anyone with similar experiences?