Skip to content

Commit 0d8f5e9

Browse files
committed
decode html entities in phenotype content (RodMal
1 parent b931fa1 commit 0d8f5e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/records/GeneRecordClasses.GeneRecordClass.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import React, {
88
} from 'react';
99
import { createRoot } from 'react-dom/client';
1010
import { connect } from 'react-redux';
11+
import { safeHtml } from '@veupathdb/wdk-client/lib/Utils/ComponentUtils';
1112

1213
import { RecordActions } from '@veupathdb/wdk-client/lib/Actions';
1314
import * as Category from '@veupathdb/wdk-client/lib/Utils/CategoryUtils';
@@ -489,7 +490,7 @@ const RodMalPhenotypeTableChildRow = pure(function RodMalPhenotypeTableChildRow(
489490
let { phenotype } = props.rowData;
490491
return (
491492
<div>
492-
<b>Phenotype</b>:{phenotype == null ? null : phenotype}
493+
<b>Phenotype</b>:{phenotype == null ? null : safeHtml(henotype)}
493494
</div>
494495
);
495496
});

0 commit comments

Comments
 (0)