MetaWeblog API 发布文章摘要问题 #80

Closed
88250 opened this Issue Aug 29, 2012 · 0 comments

Projects

None yet

1 participant

@88250
Member
88250 commented Aug 29, 2012

使用 API 发布文章时,如果正文里面存在 HTML 标签,并且位于摘要截取区域(0-500字符),则可能出现标签被截断,导致最终渲染页面错乱。

解:在生成摘要时先把正文移除标签(转为纯文本),再截取 0-500 字符内容作为摘要。

@88250 88250 was assigned Aug 29, 2012
@88250 88250 added a commit that closed this issue Aug 29, 2012
@88250 88250 Fixed #80 f6d0507
@88250 88250 closed this in f6d0507 Aug 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment