knowledge-catalog icon indicating copy to clipboard operation
knowledge-catalog copied to clipboard

fix(fetcher): unescape HTML entities in extracted href links

Open Shyam-723 opened this issue 5 months ago • 0 comments

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 &amp → & 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

Shyam-723 avatar Jul 02 '26 16:07 Shyam-723