PHP bing api html内容翻译响应显示为纯文本


PHP bing api html content translation response displays as plain text

从bing翻译后的html内容,显示为纯文本,所有html标签可见。我用的是这里的密码http://msdn.microsoft.com/en-us/library/ff512421.aspx#phpexample我如何将其转换为显示为html?

尝试将contentType="text/html"附加到查询字符串中,如http://api.microsofttranslator.com/V2/Ajax.svc/Translate?oncomplete=yourfunction&appId=yourAppID&from=lang1&to=lang2&text=yourHtml&contentType=text/html

Ref: URI parameters