Skip to content

Error 500 if rich text contains <br> #40

Description

@bbliem

There is this presumed bug in Wagtail: wagtail/wagtail#5832

For example, we get an error 500 due to this at https://kausal.watch.kausal.tech/wadmin/indicators/indicator/edit/70/ because the description contains <br> within a paragraph. (Edit: Manually fixed that indicator, so the error doesn't appear here anymore.)

Strange how HTML tags that Wagtail doesn't like (even though they're legal HTML5) end up in the DB in the first place.

I'll try to ad-hoc fix affected rows manually by replacing <br> with <br/>, but it would be good to find the root of the problem.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions