如何以简单文本打印返回Jira API

时间:2016-09-21 11:14:54

标签: php jira-rest-api

 [description] => {color:#595959}Eresh,{color} 
{color:#595959} {color} 
{color:#595959}Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s{color}  
{color:#595959} {color} 
{color:#595959}Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s{color} 
{color:#595959} {color}

返回jira api也有颜色。我想打印简单的描述。

1 个答案:

答案 0 :(得分:1)

使用此正则表达式替换花括号之间的内容 preg_replace(" / {(。*?)} /","",$ description);