Forum Discussion

Steven Tolboe's avatar
Steven Tolboe
Iron Contributor
Jun 19, 2017

SPFx - Display Rich Text Field

Is there a way in a webpart using SharePoint Frameworks to display rich text (from a list) properly? The strings I want to use contains hyperlinks, line breaks, superscripts...etc.

 

The only solution I have seen is to use "dangerouslySetInnerHTML". But, this solution can only be done once per component so it doesn't work for what I am doing. I am using a DetailsList compenent from Office UI Fabric to display a list of Q&As. The answers for each question are rich text.

Resources