Was thinking it would create hydrogen and oxygen and leave all the crap behind then it can be recombined, but not sure how efficient it would actually be. Solar evaporation system would probably be more efficient.
Though I always wondered if the hydrogen produced by electrolysis could be used to generate more power than is required to perform that electrolysis. If yes you could actually use the sea as a power source that is practically free and it could also create distilled water at same time with the residual heat from the plant. I'd like to think that if it was possible we'd be using that for power generation, but you never know these days, energy companies tend to hush (patent) technologies that could threaten them.