Modern DispForm.aspx Rich Text Not Rendering

%3CLINGO-SUB%20id%3D%22lingo-sub-1881574%22%20slang%3D%22en-US%22%3EModern%20DispForm.aspx%20Rich%20Text%20Not%20Rendering%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1881574%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20displaying%20a%20list%20item%20in%20the%20modern%20dispform.aspx%2C%20the%20rich%20text%20field%20is%20showing%20the%20un-rendered%20HTML.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20looks%20like%20the%20div%20that%20wraps%20the%20rich%20text%20is%20embedded%20in%20the%20field's%20text.%26nbsp%3B%20Below%20is%20what%20is%20currently%20being%20displayed%20in%20the%20rendered%20field%20for%20test%20list%20item.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3E%3CDIV%20class%3D%22ExternalClass7EE12DDE9994458AAA42F3263AA530D6%22%3E%3CP%3ETEST%E2%80%8B%3C%2FP%3E%3C%2FDIV%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%20else%20experiencing%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1881574%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1918304%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20DispForm.aspx%20Rich%20Text%20Not%20Rendering%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1918304%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20was%20resolved%20by%20removing%20the%20JSON%20formatting%20script%20below%20from%20the%20list%20rich%20text%20column's%20properties.%3C%2FP%3E%3CP%3EOnce%20the%20script%20was%20removed%2C%20the%20column%20rendered%20correctly%20from%20the%20dispform.aspx.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%20size%3D%222%22%3E%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22%24schema%22%3A%20%22%3CA%20href%3D%22https%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.microsoft.com%2Fjson-schemas%2Fsp%2Fcolumn-formatting.schema.json%3C%2FA%3E%22%2C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22elmType%22%3A%20%22div%22%2C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22debugMode%22%3A%20true%2C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22txtContent%22%3A%20%22%40currentField%22%2C%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22style%22%3A%20%7B%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%22font-size%22%3A%20%2218pt%22%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7D%3C%2FFONT%3E%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%3E%7D%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F867029%22%20target%3D%22_blank%22%3E%40dmoran15%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

When displaying a list item in the modern dispform.aspx, the rich text field is showing the un-rendered HTML. 

 

It looks like the div that wraps the rich text is embedded in the field's text.  Below is what is currently being displayed in the rendered field for test list item.

 

 

<div class="ExternalClass7EE12DDE9994458AAA42F3263AA530D6"><p>TEST​</p></div>

 

 

Anyone else experiencing this?

 

 

1 Reply

This was resolved by removing the JSON formatting script below from the list rich text column's properties.

Once the script was removed, the column rendered correctly from the dispform.aspx.

 

 

{
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json",
"elmType": "div",
"debugMode": true,
"txtContent": "@currentField",
"style": {
"font-size": "18pt"
}
}

 

@dmoran15