[ 
https://issues.apache.org/jira/browse/SHINDIG-544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631691#action_12631691
 ] 

impetus technologies commented on SHINDIG-544:
----------------------------------------------

Hi Chris,

I've gone through portablecontacts/0.8.1 open social spec which says

ativity should look like :

{
  "id" : 
"http://example.org/activities/example.org:87ead8dead6beef/self/af3778";,
  "title" : "<a href=\"foo\">some activity</a>",
   ....
   ....
   ....
}

and I tried SocialActivitiesWorld.xml gadget on my local Shindig installation 
and got response for getActivity like:

{
"title":"Sir Shin H. Digg Social Butterfly wrote: <a href='sss'>Test href<\/a>",
"body":"write back!", 
"mediaItems":[{"type":"image","mimeType":"image","url":"http:\/\/cdn.davesdaily.com\/pictures\/784-awesome-hands.jpg"}],
"appId":"7317"
}

It seems that what is expacted from this issue is already in the place.

But one issue I noticed and tried to figure out a solution for that.

The issue is as per the portablecontacts/0.8.1 open social spec The title field 
is a string that may only have the following html tags: <b>, <i>, <a>, 
<span>.But when I tried <font face='xxx'>Hello</font> it was also processed by 
shindig,which is not correct.

one of the solutions to handle this can be striping html tags from "title" 
except <b>, <i>, <a>, <span> tags.I was thiniking of adding this code in 
ActivityHandler.php. what do you say?


> Making activity.title for restful match the js apis 
> ----------------------------------------------------
>
>                 Key: SHINDIG-544
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-544
>             Project: Shindig
>          Issue Type: Bug
>          Components: RESTful API (PHP)
>            Reporter: Chris Chabot
>
> See 
> http://groups.google.com/group/opensocial-and-gadgets-spec/browse_thread/thread/806e929140569d80?hl=en#
>  for details

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to