how can i bring out something similar to " < a href="Https://www.google.com">Search
"
in the following code.
trigger chatterfeed on Feedback__c (after update) {
for(Feedback__c feed:trigger.old){
FeedItem post = new FeedItem();
post.ParentId = 'Some id';
String fullFileURL = URL.getSalesforceBaseUrl().toExternalForm()+'/'+ Feed.id;
String stringURL = '<a href='+fullFileURL+' >Test</a>/>';
post.Body =stringURL;
insert post;
}
for which i get a post with a link like below and clicking on it should direct to me to the link on the href. " Test " 'String stringURL = 'Test/>'; this does no work..
The post.LinkUrl will just post the url... my intention is not to post a link. my intention is to get a hyperlink in the post body. so that when i click on the hyper link it redirects me to the link given in href link.
String stringURL = 'Test/>';
by hyper link i mean : Test by link i mean :URL.getSalesforceBaseUrl().toExternalForm()+ ' / ' + Feed.id;
Like in the above html code if i click on Search , it will take me to google.com... Some thing like this.