google-code-export / google-apis-explorer

Automatically exported from code.google.com/p/google-apis-explorer
Apache License 2.0
1 stars 3 forks source link

Invalid inline links when send from API #182

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use G+ API to publish a post with inline links
2. Post message should contain inline link followed by enter (\n)
and then some text 
3. Publish the post
4. Verify the post on G+ page UI
5. On clicking that inline link, it combines the text of next line as well and 
tries to redirects it, which ultimately fails!

What is the expected output? What do you see instead?
Needs to handle "\n"

Ex. (JSON element that we get from G+ to retrieve top n posts)
"content": "link attachment with inline links:<br /><a 
href=\"http://r.co-qe2.dev.omniture.com/r/qrs\">http://r.co-qe2.dev.omniture.com
/r/qrs</a><br /><a 
href=\"http://r.co-qe2.dev.omniture.com/r/qrt%0Atest1\">http://r.co-qe2.dev.omni
ture.com/r/qrt\ntest1</a>\ufeff"

Original issue reported on code.google.com by adobe.ra...@gmail.com on 27 Jun 2014 at 6:37