Pablo

markup([asCompleteFile])

Returns a string of SVG or HTML markup for all the elements the collection.

var shapes = Pablo([
    Pablo.circle({r:50}),
    Pablo.rect({x:10})
]);

alert(shapes.markup());

If asCompleteFile is true (and if the collection does not contain a single <svg> element), then the elements in the collection are appended to a new <svg> element and that converted to markup. The <svg> element is cropped to fill its contents.

var shapes = Pablo([
    Pablo.circle({r:50}),
    Pablo.rect({x:10})
]);

alert(shapes.markup(true));

See also Pablo(markup), which creates a collection of elements from SVG markup.

var markup = '<circle cx="50" cy="50" r="50"/>',
    shapes = Pablo(markup);

Pablo(demoElement)
    .svg()
    .append(shapes)
    .crop();
Painting is just another way of keeping a diary.
Pablo Picasso