fix: rework snippet decoding
The snippet decoding did not work with "script" tags. The "script" tags produced invalid HTML. The invalid HTML could then not be added to the DOM properly.
Co-authored-by: Michael Danielczok michael@pcsg.de Co-authored-by: Moritz Scholz scholz@pcsg.de (cherry picked from commit 06a5867f)