community: Strip URLs from sitemap. (#30830)

Fixes #30829

- **Description:** Simply strips the loc value when building the
element.
    - **Issue:** Fixes #30829
This commit is contained in:
Nicky Parseghian
2025-04-23 17:18:42 -05:00
committed by GitHub
parent faef3e5d50
commit 7ecdac5240

View File

@@ -185,7 +185,7 @@ class SitemapLoader(WebBaseLoader):
els.append(
{
tag: prop.text
tag: prop.text.strip()
for tag in ["loc", "lastmod", "changefreq", "priority"]
if (prop := url.find(tag))
}