Loading homepage
Extract complete anchor elements from a constrained HTML fragment without changing their original markup.
Input: extractAnchorElements('<p>Hello</p><a href="/docs"><strong>Docs</strong></a>'); Output: ['<a href="/docs"><strong>Docs</strong></a>']
Input: extractAnchorElements('<A title="x > y">Hello</A > <a>unfinished'); Output: ['<A title="x > y">Hello</A >']
Implement the exported string utility in index.js or index.ts. Tests cover the documented scope and edge cases.