Skip to content
Advertisement

Tag: deserialization

Serialized and deserialize HTML style tag with CSS

What I’m trying to do: Save/copy HTML snippet in one place, paste it in another place and have it de-serealized into an analogous DOM How do I do serialization now Call element.outerHTML on a container element I’ve also tried using new XMLSerializer().serializeToString(element) with the same result The issue When I serialize style nodes that contain the css like: They actually

Advertisement