Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Null should be replaced with \fffd REPLACEMENT CHARACTER (�) #124

Closed
facelessuser opened this issue Mar 16, 2019 · 0 comments
Closed

Null should be replaced with \fffd REPLACEMENT CHARACTER (�) #124

facelessuser opened this issue Mar 16, 2019 · 0 comments
Labels
S: confirmed Confirmed bug report or approved feature request. T: bug Bug.
Milestone

Comments

@facelessuser
Copy link
Owner

This appears to be something that escapes should translate to (\0) and also literal NULL. All of the parsers used by BeautifulSoup remove any Null characters from HTML source, so searching for NULL is impossible. On top of that, the CSS spec states that NULL characters should be replaced with \fffd REPLACEMENT CHARACTER (�). Hex escapes should not translate to NULL, but also translate to \fffd REPLACEMENT CHARACTER (�).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: confirmed Confirmed bug report or approved feature request. T: bug Bug.
Projects
None yet
Development

No branches or pull requests

1 participant