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
Smita HodiggeriSmita Hodiggeri 

Posting to Chatter with Rich Text Template throws INVALID_MARKUP: Error while parsing Rich Text Content: Unsupported HTML tag or attribute encountered - strong.

Hi Community,
 
I am writing a flow which should create a chatter post internally using Rich text template.
The content of rich text template is as per SC. So when I try to create a test record it throws error saying "NVALID_MARKUP: Error while parsing Rich Text Content: Unsupported HTML tag or attribute encountered - strong." I highly doubt the way I am using tags "<p> </p>" to create lines between Subject and Description.
Can I get another pair of eyes to look at this and suggest workable ways?
User-added imageYour time is much appreciated.
Thanks,
Smita
SwethaSwetha (Salesforce Developers) 
HI Smita,

To create new lines in the Rich Text Content, can you try using the <br> tag like below and see if it works
 
<p>{!$Record.Subject}</p><br>
<p>{!$Record.Description}</p>

Recommend reviewing https://help.salesforce.com/s/articleView?id=sf.fields_using_rich_text_area.htm&type=5#:~:text=Paragraphs%20and%20line%20breaks

If this helps, please mark the answer as best. Thank you