ask:
Does the vue3 project need this section? import DOMParser from 'dom-parser'; // Add dependency DOMParser
answer:
If you need to use it in Vue 3 DOMParser
, you don't need to add additional dependencies, because DOMParser
it is a standard JavaScript API and is already built into the browser. Therefore, you only need to use the object directly in the component DOMParser
without the need to install or import any additional libraries.