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

<wbr> is inserted in the middle of html escaped characters #1137

Closed
1 task done
rinick opened this issue Nov 22, 2019 · 2 comments · Fixed by #1139
Closed
1 task done

<wbr> is inserted in the middle of html escaped characters #1137

rinick opened this issue Nov 22, 2019 · 2 comments · Fixed by #1139
Labels
bug Functionality does not match expectation

Comments

@rinick
Copy link
Contributor

rinick commented Nov 22, 2019

Expected Behavior

special character should be shown correctly
for example &#x3D;

Actual Behavior

str = str.replace(/([^A-Z])([A-Z][^A-Z])/g, (m: string, a: string, b: string) => a + '<wbr>' + b);

&#x3D; is converted to &#x3<wbr>D;

Steps to reproduce the bug

interface Filter{
  "=": string;
}

Environment

  • Typedoc version: 0.15.2
  • Node.js version: 12.8.0
  • OS: win10
@rinick rinick added the bug Functionality does not match expectation label Nov 22, 2019
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 22, 2019

Well, the only character that can trigger this is =, so that's something at least.

https://github.com/wycats/handlebars.js/blob/25bae31578f95127720dd4dd911703101c8f7005/lib/handlebars/utils.js#L9

PR welcome, or I'll try to get to this Sunday, busy week here.

This was referenced Nov 23, 2019
@Gerrit0
Copy link
Collaborator

Gerrit0 commented Nov 23, 2019

Fix released in v0.15.3

@Gerrit0 Gerrit0 added the fixed label Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality does not match expectation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants