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

Strings in HTML must be sanitized #3

Open
letil opened this issue Oct 29, 2021 · 2 comments
Open

Strings in HTML must be sanitized #3

letil opened this issue Oct 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@letil
Copy link
Collaborator

letil commented Oct 29, 2021

The \ns in multiline texts in html need to be replaced with \\n

<div>
  Hello
  World
</div>

generates

  tdiv:
    text "Hello
  World"

but expected

  tdiv:
    text "Hello\nWorld"
@letil letil added the bug Something isn't working label Oct 29, 2021
@letil
Copy link
Collaborator Author

letil commented Oct 29, 2021

The expected result can be as following too:

  tdiv:
    text """Hello
  World"""

@letil
Copy link
Collaborator Author

letil commented Nov 1, 2021

The strings with " need to be sanitized too

@letil letil changed the title Multiline strings in HTML must be sanitized Strings in HTML must be sanitized Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant