Css style does not work when I send Hipchat message by using curl

Viviane Götzen June 28, 2016

Hello,

I want to send a HipChat Message by using curl. The text in this message should have different colors.

Unfortunately it doesn't seem to work by using html tags and css styles. Isn't it implemented? I used following line:

 curl -d '{"message": "<p style=\"color:green\"> test </p> next test", "notify ": false, "message_format":"html", "scope": "send_message"}' -H 'Content-Type: application/json' "https://api.hipchat.com/v2/user/[user]/message?auth_token=[token]"

 

I get a message by using it, but the message's color is all plain. 

 

Thanks,

Viviane

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Answer accepted
rich
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 28, 2016

I think we filter the style attribute out of <p> tags, but it works with <span>s

0 votes
Viviane Götzen June 28, 2016

Hey,

Thank you for answering.

It works! 

TAGS
AUG Leaders

Atlassian Community Events