Skip to content

Strip more kinds of whitespace from news titles and summaries #128

Description

@Mr0grog

In a recent news update, I noticed that Contra Costa county had an entry where the title started with a zero-width space (\u200b) (sfbrigade/stop-covid19-sfbayarea#392 (comment)).

We already strip whitespace around titles and summaries in most news feeds, but it turns out string.strip() doesn’t handle some of the more complex whitespace like \u200b. We should probably have a better text stripping function that does this for some of the more complex whitespace characters (e.g. \u2000 - \u200b).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnewsRelated to scraping news (rather than data)

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions