Skip to content

Commit

Permalink
AG-1412 using unicode character instead of html escape sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
sagely1 committed Apr 5, 2024
1 parent 1467ca8 commit bc2612a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@
<div>P-Value</div>
</div>
<div>
<div [innerHTML]="getSignificantFigures(data.value, 3)"></div>
<div [innerHTML]="getSignificantFigures(data.pValue, 3)"></div>
<div>
{{ getSignificantFigures(data.value, 3) }}
</div>
<div>
{{ getSignificantFigures(data.pValue, 3) }}
</div>
</div>
</div>

Expand All @@ -34,17 +38,23 @@
[style]="getIntervalPositions(data)"
>
<div>
<div class="gct-details-panel-chart-interval-left" [innerHTML]="getSignificantFigures(data.intervalMin, 3)"></div>
<div class="gct-details-panel-chart-interval-left">
{{ getSignificantFigures(data.intervalMin, 3) }}
</div>
</div>
<div>
<div class="gct-details-panel-chart-interval-right" [innerHTML]="getSignificantFigures(data.intervalMax, 3)"></div>
<div class="gct-details-panel-chart-interval-right">
{{ getSignificantFigures(data.intervalMax, 3) }}
</div>
</div>
</div>
<div
class="gct-details-panel-chart-value"
[style]="getValuePosition(data)"
>
<div [innerHTML]="getSignificantFigures(data.value, 3)"></div>
<div>
{{ getSignificantFigures(data.value, 3) }}
</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class GeneComparisonToolDetailsPanelComponent {
}

getSignificantFigures(n: any, b: any) {
const emdash = '&#8212;'; // Shift+Option+Hyphen
const emdash = '\u2014'; // Shift+Option+Hyphen
if (n === null || n === undefined)
return emdash;
return this.helperService.getSignificantFigures(n, b);
Expand Down

0 comments on commit bc2612a

Please sign in to comment.