Skip to content

Improved page parsing robustness when wrongly decoded quotes #1658

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

singingknight
Copy link
Contributor

Handle situation where pages contains WebParts with properties, which when HtmlDecoded generates invalid JSON giving errors like:

'E' is invalid after a value. Expected either ',', '}', or ']'. Path: $ | LineNumber: 0 | BytePositionInLine: 17277.

Tries to replace " with \", if this fails just export with basic info and title set to Failed to deserialize WebPart

Handle situation where pages contains WebParts with properties, which when HtmlDecoded generates invalid JSON giving errors like:

```
'E' is invalid after a value. Expected either ',', '}', or ']'. Path: $ | LineNumber: 0 | BytePositionInLine: 17277.
```

Tries to replace `"` with `\"`, if this fails just export with basic info and title set to `Failed to deserialize WebPart`
jansenbe pushed a commit that referenced this pull request Jun 13, 2025
@jansenbe jansenbe merged commit ebf793c into pnp:dev Jun 13, 2025
jansenbe pushed a commit that referenced this pull request Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants