【发布时间】:2014-07-07 14:57:07
【问题描述】:
从bing翻译后的html内容,显示为纯文本,所有html标签可见。我正在使用这里的代码 http://msdn.microsoft.com/en-us/library/ff512421.aspx#phpexample 如何将其转换为 html 显示?
【问题讨论】:
标签: php character-encoding translation bing
从bing翻译后的html内容,显示为纯文本,所有html标签可见。我正在使用这里的代码 http://msdn.microsoft.com/en-us/library/ff512421.aspx#phpexample 如何将其转换为 html 显示?
【问题讨论】:
标签: php character-encoding translation bing
尝试将 contentType="text/html" 附加到查询字符串中,如http://api.microsofttranslator.com/V2/Ajax.svc/Translate?oncomplete=yourfunction&appId=yourAppID&from=lang1&to=lang2&text=yourHtml&contentType=text/html
【讨论】: