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

Unescaped broken HTML in the output #106

Closed
mensfeld opened this issue Jul 24, 2020 · 6 comments · Fixed by rtfpessoa/diff2html#329
Closed

Unescaped broken HTML in the output #106

mensfeld opened this issue Jul 24, 2020 · 6 comments · Fixed by rtfpessoa/diff2html#329

Comments

@mensfeld
Copy link

Hello again, this time a bug report:

Repro:

git clone https://github.com/mensfeld/broken-diff.git
cd https://github.com/mensfeld/broken-diff.git
./run.sh

browser will open and then scroll to file called web/assets/javascripts/application.js it looks as followed:

Zrzut ekranu z 2020-07-24 18-08-07

while on a really, really old version of this cli (2.7.0), it looks like so:

Zrzut ekranu z 2020-07-24 18-08-48

@rtfpessoa
Copy link
Owner

rtfpessoa commented Jul 26, 2020

Wow, some bad thing going on here.
Seems like in was introduced in version 5.0.0. Last version where is seems fine is 4.2.1.

@mensfeld
Copy link
Author

mensfeld commented Jul 27, 2020

Hey @rtfpessoa any idea what I can do beyond removing the node_modules from my project? I tried that, reinstalled and seeing same effects :(

cleaning yarn cache does not help as well

@rtfpessoa
Copy link
Owner

Weird. I just did yarn global remove diff2html-cli and then yarn global add diff2html-cli.

If it is local to a repository I was expecting that yarn remove diff2html-cli followed by yarn add diff2html-cli would do it.

Can you try adding --force and see if it works?
If not I will add a new version. I was really expecting the ^3.x.x to allow minor and patch updated automatically.

@mensfeld
Copy link
Author

@rtfpessoa please forgive me for pinging you prematurely. I forgot to update the yarn.lock file, thus it was pointing to the old version of diff2html. After purging, cleaning and forcing things work great.

Once again: thank you for your amazing work!

@rtfpessoa
Copy link
Owner

No worries. Nice that it worked.

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

Successfully merging a pull request may close this issue.

2 participants