However, shouldn't also the sun have the footprints of its components? Shouldn't it's spectrum be similar to the hydrogen and helium ones? (it isn't, but why?)
The light emitted by the sun is heat energy that's being re-radiated from hot gasses. The actual electromagnetic energy generated in the sun's core is in the form of x-rays; it gets absorbed fairly soon, and then takes millions of years to make it out to the part of the sun that we see glowing.
However the sun's spectrum isn't continuous -- it has colder gasses overlaying the glowing parts, and those cold gasses absorb radiation in bands centered around the same spectral lines as they would glow in a gas discharge tube (See the comments for why).
In fact, helium was first discovered as spectral absorption lines in the sun's light, and is named after Helios, the Greek word for "sun".
And is there something that emits a fully continuous spectrum?
Do a web search on "black body radiation". Things that are perfectly black, and are hot, emit radiation in a continuous spectrum (but not one that's flat).