tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.
https://j2html.com/
Apache License 2.0
765 stars 136 forks source link

#135 issue - the constructor is escaping the text, but the setter doesn't #153

Closed emanueltrandafir closed 4 years ago

emanueltrandafir commented 4 years ago

135 the constructor of Attribute was escaping the it's string 'value', but the setter of the class wasn't.

so this was working ok: p().withClass("bar\"baz")

while this wasn't: p().withClass("foo").withClass("bar\"baz")

tipsy commented 4 years ago

Could you flip the test to do assertEquals (instead of not)?

emanueltrandafir commented 4 years ago

@tipsy sure, I have changed them now and commited.

emanueltrandafir commented 4 years ago

Hi, @tipsy is it everything ok now? Thanks.

tipsy commented 4 years ago

I'll have another look tomorrow :)

tipsy commented 4 years ago

Seems to be a conflicting file though.

tipsy commented 4 years ago

Looks fine, you just have to fix the conflict :)

emanueltrandafir commented 4 years ago

Looks fine, you just have to fix the conflict :)

Hi,

I have made the update and fixed the conflicts today.

Thanks.

emanueltrandafir commented 4 years ago

@tipsy Hello, sorry for bothering, if everything is ok, can we merge it before other commits/changes to the master?

thanks! :)

tipsy commented 4 years ago

Sorry about the late reply @emanueltrandafir ! It seems the change also includes the other major refactoring that also happened: +5,553 −2,580. This is probably easy to fix by rebasing, but I don't feel comfortable merging it since I don't know what exactly is in it.

emanueltrandafir commented 4 years ago

@tipsy no problem. I see someone already fixed the same thing 8 days ago and the PR was merged. I think this can be closed

tipsy commented 4 years ago

@emanueltrandafir sorry about that, there's been an unusual amount of traffic on the project lately. Thank you anyway :)