def response_news(self, articles):
self._check_parse()<EOL>for article in articles:<EOL><INDENT>if article.get('<STR_LIT:title>'):<EOL><INDENT>article['<STR_LIT:title>'] = self._transcoding(article['<STR_LIT:title>'])<EOL><DEDENT>if article.get('<STR_LIT:description>'):<EOL><INDENT>article['<STR_LIT:description>'] = self._transcoding(article['<STR_LIT:description>'])<EOL><DEDENT>if article.get('<STR_LIT>'):<EOL><INDENT>article['<STR_LIT>'] = self._transcoding(article['<STR_LIT>'])<EOL><DEDENT>if article.get('<STR_LIT:url>'):<EOL><INDENT>article['<STR_LIT:url>'] = self._transcoding(article['<STR_LIT:url>'])<EOL><DEDENT><DEDENT>news = ArticleReply(message=self.__message)<EOL>for article in articles:<EOL><INDENT>article = Article(**article)<EOL>news.add_article(article)<EOL><DEDENT>response = news.render()<EOL>return self._encrypt_response(response)<EOL>
将新闻信息组装为符合微信服务器要求的响应数据
:param articles: list 对象, 每个元素为一个 dict 对象, key 包含 `title`, `description`, `picurl`, `url`
:return: 符合微信服务器要求的 XML 响应数据