---
title: "Discussion on \"DOMParser() usage in react-scan source code.\" | Hashnode"
description: "Discussion on \"DOMParser() usage in react-scan source code.\". I found DOMParser in react-scan source code as shown below.\nconst iconSprite = new DOMParser().parseFromString(\n    ICONS,\n    'image/svg+xml',\n  ).documentElement;\n\nThis picked from line 54 in packages/scan/src/core/index.ts. In this article, we und..."
url: "https://hashnode.com/posts/domparser-usage-in-react-scan-source-code/67bd5542df60d6f3211f23f8"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [DOMParser() usage in react-scan source code.](https://thinkthroo.com/blog/domparser-usage-in-react-scan-source-code?utm_source=hashnode&utm_medium=feed)

I found DOMParser in react-scan source code as shown below. const iconSprite = new DOMParser().parseFromString( ICONS, 'image/svg+xml', ).documentElement; This picked from line 54 in packages/scan/src/core/index.ts. In this article, we und...

Feb 25, 2025 · 2 min read · thinkthroo.com  
Updated Apr 3, 2025  
Read the article

-   [#opensource](https://hashnode.com/tag/opensource)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#dom](https://hashnode.com/tag/dom)
-   [#reactscan](https://hashnode.com/tag/reactscan)
-   [#parser](https://hashnode.com/tag/parser)

## Written by

[Ramu Narasinga](https://hashnode.com/@ramunarasinga)

@ramunarasinga · India

  
[View profile](https://hashnode.com/@ramunarasinga)

I study large open-source projects and create content about their codebase architecture and best practices, sharing it through articles, videos.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
