Quantcast
Channel: Active questions tagged feeditem - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 160

Title attribute of in FeedItem is replaced by null

$
0
0

I posted several FeedItems using Salesforce Rest API but the title attribute of <a> tags in rich texts were not working correctly for me.

For instance,

POST /sobjects/FeedItem/

{
    "ParentId": "5000o0000xxxxxxxxx",
    "Body": "<ol>\n    <li>\n        <a title=\"Google\" href=\"https:\/\/www.google.com\">Google<\/a>\n    <\/li>\n<\/ol>",
    "IsRichText": true
}
<ol>
    <li>
        <a title="Google" href="https://www.google.com">Google</a>
    </li>
</ol>

...would be parsed into

<ol>
    <li>
        <span dir="ltr" class="uiOutputText"></span>
        <a href="https://www.google.com" title="null" target="_blank"><span dir="ltr" class="uiOutputText">Google</span></a>
        <span dir="ltr" class="uiOutputText"></span>
    </li>
</ol>

...and displayed like

Salesforce Chatter comment screenshot

Any idea what's going wrong? Thanks.


Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>