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

Underscores are removed from html #47

Open
erikvanoosten opened this issue Apr 13, 2018 · 3 comments
Open

Underscores are removed from html #47

erikvanoosten opened this issue Apr 13, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@erikvanoosten
Copy link
Contributor

erikvanoosten commented Apr 13, 2018

In pine 0.2 the following was quite unexpected:

scala> import pine._
import pine._

scala> html"<span>_</span>".toHtml
res0: String = <span></span>

Where did the underscore go to?

Is this because of

// TODO Find a better solution
?

@tindzk
Copy link
Member

tindzk commented Apr 16, 2018

Thanks for the report! Yes, this is most likely the reason. As a workaround, you could use an external file.

I am planning to use a streaming HTML parser (#12) which would eliminate the need for inserting placeholders.

@tindzk tindzk added this to the v0.2 milestone Apr 16, 2018
@tindzk tindzk self-assigned this Apr 16, 2018
@tindzk tindzk added the bug label Apr 16, 2018
@erikvanoosten
Copy link
Contributor Author

@tindzk Is this one also fixed in v0.1.7?

@tindzk
Copy link
Member

tindzk commented Oct 5, 2020

@erikvanoosten Unfortunately, the issue has not been fixed yet, but I will work on it soon. Sorry it has taken so long!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants