SonarQube有添加评论接口/issues/ add _ comment的webservice接口,该webservice接口的参数为issue_id和text。我想添加html文本,而不是纯文本。无论我传递的是什么文本,它都被认为是普通文本。如何使用webserive comment api将htmlText/markdown作为注释传递示例:
http://localhost:9000/api/issues/add_comment?text="<a href="http://www.link.com" target="_blank">visit this issue</a>" &issue=abcd-e0a3-49dc-9d46-45bf92748361
上面的api将所有内容作为普通文本写入声纳问题评论部分。
发布于 2016-07-10 22:31:14
这不可能以HTML格式发布评论,只是为了避免像XSS这样的安全问题。
"text“参数接受SonarQube Markdown格式,有关该格式的信息,请参阅https://sonarqube.com/markdown/help上的联机文档
https://stackoverflow.com/questions/38276429
复制相似问题