Create svg elements from a string