hub icon indicating copy to clipboard operation
hub copied to clipboard

Events API description/about field parsing

Open Splaktar opened this issue 10 years ago • 4 comments

It looks like the API is doubling my <br/> tags by adding a <br /> tag for each of them. This leads to my formatting being messed up on the boomerang events page.

See the output below. Every <br/> in the data has an additional <br /> added to it.

"about": "Tech Talk: Testing your AngularJS application with Karma and Jasmine<br/><br />Code Lab: Go: Build a RESTful Back-end on App Engine (60-90 mins)<br /><br/><br/><br />Using Go on App Engine, you will create a fully working todo list manager. The provided front-end is implemented using AngularJS and Restangular, and connects to the back-end via a REST API that you will implement.<br /><br/><br/><br />#angularjs #golang #googlecloudplatform #appengine #karma #jasmine",

Also was there a reason to change this field from description to about?

Splaktar avatar Aug 10 '14 04:08 Splaktar

I wish that I had time to fix this myself, but unfortunately that has not been the case. As such, this is still blocking me from deploying the use of Hub to my production site.

Splaktar avatar Sep 20 '14 14:09 Splaktar

@Splaktar moving this up my priority list.

mauimauer avatar Sep 20 '14 16:09 mauimauer

Thanks much! Hopefully it is simple and quick.

Splaktar avatar Sep 20 '14 16:09 Splaktar

I've added the following hack to boomerang so that I can deploy with the Hub API:

data.items[i].about = data.items[i].about.replace(/<br \/><br\/><br\/><br \/>/g, '<br/><br/>');

It would be nice if such a hack was not needed though.

Splaktar avatar Nov 09 '14 19:11 Splaktar