function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Alexandr VashchenkoAlexandr Vashchenko 

Post FeedComment with rich text

Hi all! 

Recently I found that we can post rich text FeedComments from lightning. Who knows how to create same post programmatically? Simple using of HTML doesn't work and I didn't find any documentation. 
User-added image
Thanks for reading! 
Aman MalikAman Malik
Hi Alexandr,
We can't add html in feedItem programmatically as this is a known limitation. refer below links for more detail:
https://success.salesforce.com/ideaView?id=08730000000hGNZAA2
https://success.salesforce.com/issues_view?id=a1p30000000jZbTAAU

Please mark this answer as best if this helps.

Thanks
Aman