mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
chore: escape HTML (#527)
This commit is contained in:
parent
c0b0cd49b5
commit
35f83e491a
|
@ -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> <{schema.format}> </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>}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user