Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Support for HTML5.0 Entity Codes/Names

Đang mở
#1,399 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
swift
Lĩnh vực
mobile-dev

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện HTML được cung cấp trong trình soạn thảo và lần theo đường dẫn tải HTML chịu trách nhiệm giải mã entity. Xác minh khả năng hỗ trợ các tên entity HTML5 được liệt kê, bao gồm dấu phẩy, dấu chấm, dấu nháy đơn và dấu ngoặc đơn, đồng thời xác nhận rằng văn bản thu được trong trình soạn thảo khớp với các ký tự mong đợi.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
Swift
Star
669
Fork
153
Merge trung bình
11 giờ 27 phút
Pull request đã merge (30 ngày)
4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của wordpress-mobile/AztecEditor-iOS

Tất cả issue của wordpress-mobile/AztecEditor-iOS

Issue tương tự

Thêm issue về Swift

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.