Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Support for HTML5.0 Entity Codes/Names

未关闭
#1,399 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
swift
领域
mobile-dev

调研方向

首先,在编辑器中复现所提供的 HTML,并追踪负责实体解码的 HTML 加载路径。验证对所列 HTML5 实体名称的支持,包括逗号、句号、撇号和括号,并确认编辑器中生成的文本与预期字符一致。

由索引模型根据 Issue 内容生成。

描述

I'm currently having problems converting HTML5 entity names like ,, ., (, ), etc. to its corresponding character when loading an html string to the editor. As a result, I would like to have these new entity names and codes supported when loading HTML5 content to the editor.

An alternative would be to parse these entity codes on my end but this would be tedious considering there are numerous additions of these in HTML5.

This is a sample html string passed on to the editor:

<p style=\"text-align: left;\">It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout&period; The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters&comma; as opposed to using &apos;Content here&comma; content here&apos;&comma; making it look like readable English&period; Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text&comma; and a search for &apos;lorem ipsum&apos; will uncover many web sites still in their infancy&period; Various versions have evolved over the years&comma; sometimes by accident&comma; sometimes on purpose &lpar;injected humour and the like&rpar;&period;</p>

This is the resulting text loaded in the editor:
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout&period; The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters&comma; as opposed to using \'Content here&comma; content here\'&comma; making it look like readable English&period; Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text&comma; and a search for \'lorem ipsum\' will uncover many web sites still in their infancy&period; Various versions have evolved over the years&comma; sometimes by accident&comma; sometimes on purpose &lpar;injected humour and the like&rpar;&period;

This is the expected result:
It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy, Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).

主要语言
Swift
星标
669
派生
153
平均合并
11 小时 27 分钟
30 天内合并 PR
4

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wordpress-mobile/AztecEditor-iOS 的其他 Issue

查看 wordpress-mobile/AztecEditor-iOS 的全部 Issue

相似的 Issue

更多 Swift Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。