> For the complete documentation index, see [llms.txt](https://canvacard.srgobi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://canvacard.srgobi.com/utils/parsesvg.utils.md).

# Parse SVG

### Members

[parseSvg](#parseSvg) ⇒ `string`

Check if the custom badge is valid (SVG)

[validateImage](#validateImage) ⇒ `string`

Helper function to validate images

### parseSvg ⇒ `string`

Check if the custom badge is valid (SVG)

**Kind**: global variable\
**Returns**: `string` - Image URL

| Param     | Type     | Description |
| --------- | -------- | ----------- |
| imgString | `string` | Image URL   |

### validateImage ⇒ `string`

Helper function to validate images

**Kind**: global variable\
**Returns**: `string` - Image URL

| Param     | Type     | Description                       |
| --------- | -------- | --------------------------------- |
| imgString | `string` | Image URL                         |
| format    | `string` | Image format ('png', 'svg', etc.) |
