How do I format a column of type "Enhanced Rich Text" so that everything is displayed in the element?

Soeren 0 Reputation points
2023-04-11T08:38:53.17+00:00

Dear Community,
My problem relates to a Microsoft list that is located on an online SharePoint. I have a column called "Description" which was created as a multiline text field (enhanced rich text). The column itself contains images, text, links, and tables. My problem: I would like to format the column so that it displays the complete content. However, when I use the elmType "div" or "span", the column is only displayed in an HTML format. If you have a solution for this issue, I would be very grateful. Best regards,
Soeren

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenXu-MSFT 24,951 Reputation points Moderator
    2023-04-12T02:44:33.1433333+00:00

    Hi @Soeren,

    From the Formatting column with long text to multiple-line with word wrap site:

      Rich text fields return their values with HTML. List Formatting automatically escapes values meaning that these types of fields will include HTML in their text values and that HTML will not be used as part of the page. It is not recommended to use rich text fields with List Formatting.

    If you turn off "enhanced rich text" the JSON will work as advertised. Also declared in this article from MS for your reference: Supported column types.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. AllenXu-MSFT 24,951 Reputation points Moderator
    2023-05-04T06:09:27.8966667+00:00

    Hi @Soeren,

    May I know if you still need any further support? If you want this by OOTB, I suggest you can raise a thread in the SharePoint feedback portal: https://feedbackportal.microsoft.com/feedback/forum/06735c62-321c-ec11-b6e7-0022481f8472. If you have any other concern, kindly comment here. I'm glad to provide further support.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.