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 array values to prevent StyleNotFound exception #14

Closed
wants to merge 7 commits into from

Conversation

Baspa
Copy link
Contributor

@Baspa Baspa commented Oct 24, 2023

This PR is related to #13.

The error seems to be caused by the fact that an array can contain a style / class as well. I am now mapping through the array values and escape the values here as well.

TODO

  • Write test
  • Fix the static analyzer.

Screenshots

Without fix

Screenshot 2023-10-24 at 16 49 38

After fix

Screenshot 2023-10-24 at 16 45 09

@nunomaduro
Copy link
Member

Thanks, I've made a better solution here: #16.

@nunomaduro nunomaduro closed this Nov 7, 2023
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