fix(news): unwrap CDATA titles at ingest and on /api/news #62
Loading…
Reference in a new issue
No description provided.
Delete branch "wt/t_4f334c8b"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
GET /api/news, so existing Excelsior rows read clean without an UPDATE.<![CDATA[Hello]]>,\n <![CDATA[Hello]]>, and the live shape with trailing spaces all becomeHello. A plain title and real HTML (<b>Keep</b>) are unchanged. A title that merely contains the markers is left alone.wt/t_ceb74e64(02a9a56, PR #59). This PR includes that commit. It does not reimplement health orfeeds.Premise
Live
GET /api/newstitles fromwww.excelsior.com.mxare raw<![CDATA[...]]>with surrounding whitespace (66 rows). None are entity-escaped (<![CDATA[), so that form is not unwrapped.Test plan
pytest tests/test_news_scraper.py tests/test_api_news.py -q— 30 passeddocker login 127.0.0.1:3000is not this change.