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> <div>
<TypePrefix>{schema.typePrefix}</TypePrefix> <TypePrefix>{schema.typePrefix}</TypePrefix>
<TypeName>{schema.displayType}</TypeName> <TypeName>{schema.displayType}</TypeName>
{schema.format && ( {schema.format && <TypeFormat> &lt;{schema.format}&gt; </TypeFormat>}
<TypeFormat>
{' <'}
{schema.format}>
</TypeFormat>
)}
{schema.title && <TypeTitle> ({schema.title}) </TypeTitle>} {schema.title && <TypeTitle> ({schema.title}) </TypeTitle>}
<ConstraintsView constraints={schema.constraints} /> <ConstraintsView constraints={schema.constraints} />
{schema.nullable && <NullableLabel> Nullable </NullableLabel>} {schema.nullable && <NullableLabel> Nullable </NullableLabel>}