chore: escape HTML (#527)

This commit is contained in:
Jérémy Derussé 2018-06-18 14:58:26 +02:00 committed by Roman Hotsiy
parent c0b0cd49b5
commit 35f83e491a

View File

@ -28,12 +28,7 @@ export class FieldDetails extends React.PureComponent<FieldProps> {
<div>
<TypePrefix>{schema.typePrefix}</TypePrefix>
<TypeName>{schema.displayType}</TypeName>
{schema.format && (
<TypeFormat>
{' <'}
{schema.format}>
</TypeFormat>
)}
{schema.format && <TypeFormat> &lt;{schema.format}&gt; </TypeFormat>}
{schema.title && <TypeTitle> ({schema.title}) </TypeTitle>}
<ConstraintsView constraints={schema.constraints} />
{schema.nullable && <NullableLabel> Nullable </NullableLabel>}