knowledge-catalog
knowledge-catalog copied to clipboard
fix(fetcher): unescape HTML entities in extracted href links
Fixes #170
Fix: Add html.unescape() on each captured href before it is resolved and stored. This is a stdlib.
One new test covering the & → & conversion has been added as well.
Files changed:
- okf/src/reference_agent/web/fetcher.py — import and apply html.unescape on extracted hrefs
- okf/tests/test_web_fetcher.py — test_fetch_and_parse_unescapes_html_entities_in_links