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

escape_html: prevent escaping quotes #1829

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

martinRenou
Copy link
Member

@martinRenou martinRenou commented Aug 10, 2022

This fixes an issue in Voila and the ipywidgets's HTMLManager for widgets support voila-dashboards/voila#1186

Escaping quotes in the widget view mimetype being:

{"version_major": 2, "version_minor": 0, "model_id": "3b69871380984eae832c53f5ba8afa56"}

Breaking the JSON representation of the widget in the Notebook

This fixes an issue in Voila and the ipywidgets's HTMLManager for widgets support
For escaping HTML from JSON reprs
@martinRenou martinRenou merged commit c289e0a into jupyter:6.x Aug 10, 2022
@martinRenou martinRenou deleted the donot_escape_quotes branch August 10, 2022 13:59
martinRenou added a commit to martinRenou/nbconvert that referenced this pull request Aug 10, 2022
)

* escape_html: prevent escaping quotes

This fixes an issue in Voila and the ipywidgets's HTMLManager for widgets support

* Add method for escaping html while keeping quotes

For escaping HTML from JSON reprs
martinRenou added a commit that referenced this pull request Aug 11, 2022
…1830)

* escape_html: prevent escaping quotes

This fixes an issue in Voila and the ipywidgets's HTMLManager for widgets support

* Add method for escaping html while keeping quotes

For escaping HTML from JSON reprs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant