I send notification to a Hip Chat room using the REST API.
Everything works well, however some css attributes in my html are removed :
<img style="width:50px; padding-right: 15px;" src="http://url/to/image.png"/>
the width attribute is kept, but padding-right is removed.
It is annoying as I can't get the exact layout I want.
Is there a white list of css attributes that can be used in a notification ?
Could you point me to the relevant document ?
We currently accept the following basic CSS attributes for HTML messages sent via the API:
'font-weight', 'color', 'text-decoration', 'height', 'width'
Our API docs only state the accepted HMTL tags, but we do have plans to include additional info on styling soon -https://www.hipchat.com/docs/apiv2/method/send_room_notification
...from the beginning. We have built up a lot of content in HipChat, with it being a core tool in our distributed company model. While it is true that we didn’t need to move to Slack immediately, we felt it...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs