This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Close
PR 类型
这个 PR 的目的是什么?
功能
解析某些直播间的介绍文字中html标签内容为纯文本字符
当前行为是什么?
某些直播间的描述为html标签文本,比如key725的直播间。在直播间的介绍中会显示html标签,如<p>xxxx</p>
新的行为是什么?
解析html标签获取到纯文本。如原文本为<p>xxxx</p>,解析后为xxxx
PR 检查清单
请检查你的 PR 是否满足以下要求:
备注
根据情况决定是否需要合并吧
使用了html解析库HtmlAgilityPack
此功能解析后实际会造成某些直播间通过本app观看时,其描述和web端的有区别。比如我上面举例的key725的直播间描述,实际的web端展示的为
解析后变成了
app上展示没有html标签,看起来更美观。当然,如果从是数据方面来看,实际上这个是破坏了原始数据。