Skip to content

Conversation

@stianjensen
Copy link

Description

Fixes a regression from
#255, where quotes in strings were escaped both with backslashes, and as html escapes. Using both is redundant, and yields a SyntaxError / warning when you try to run it on certain Python versions:

SyntaxError: invalid escape sequence '&'

Ticket link

Change type

  • Bug fix
  • New feature
  • Breaking change
  • Add/Update documentation

Notes

@stianjensen stianjensen requested a review from a team as a code owner December 2, 2025 19:53
Fixes a regression from
regulaforensics#255,
where quotes in strings were escaped both with backslashes, and as html
escapes. Using both is redundant, and yields a SyntaxError / warning
when you try to run it on certain Python versions:

> SyntaxError: invalid escape sequence '\&'
@stianjensen stianjensen changed the title Avoid two kind of ecaping in error strings Avoid two kinds of escaping in error strings Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant