diff --git a/tgui/packages/tgui/components/LabeledList.tsx b/tgui/packages/tgui/components/LabeledList.tsx index 76036a6ff56..9cb9dfea0d0 100644 --- a/tgui/packages/tgui/components/LabeledList.tsx +++ b/tgui/packages/tgui/components/LabeledList.tsx @@ -29,6 +29,7 @@ type LabeledListItemProps = { textAlign?: string | BooleanLike; buttons?: InfernoNode; tooltip?: string | BooleanLike; + preserveWhitespace?: BooleanLike; /** @deprecated */ content?: any; children?: InfernoNode; @@ -45,6 +46,7 @@ const LabeledListItem = (props: LabeledListItemProps) => { tooltip, content, children, + preserveWhitespace, } = props; let listItem = ( @@ -61,6 +63,7 @@ const LabeledListItem = (props: LabeledListItemProps) => { textAlign={textAlign} className={classes(['LabeledList__cell', 'LabeledList__content'])} colSpan={buttons ? undefined : 2} + preserveWhitespace={preserveWhitespace} > {content} {children} diff --git a/tgui/packages/tgui/interfaces/MedicalRecords.js b/tgui/packages/tgui/interfaces/MedicalRecords.js index 0c624b1da25..6c998a4018d 100644 --- a/tgui/packages/tgui/interfaces/MedicalRecords.js +++ b/tgui/packages/tgui/interfaces/MedicalRecords.js @@ -1,4 +1,4 @@ -import { createSearch } from 'common/string'; +import { createSearch, decodeHtmlEntities } from 'common/string'; import { useBackend, useLocalState } from '../backend'; import { Box, @@ -394,14 +394,13 @@ const MedicalRecordsViewMedical = (_properties, context) => { {medical.fields.map((field, i) => ( - - - {field.value} - + + {decodeHtmlEntities(field.value)} {!!field.edit && (