The SVG Element.innerHTML property returns innerHTML of the given element.
Syntax:
const content = element.innerHTML
Return value: This property returns innerHTML of the element.
Example 1:
Output:
Example 2: