mathiasbynens / mathiasbynens/he

Feature request: Add optional support for ISO-8859-1 characters

Open
#83 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
3.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Taking my source from https://www.freeformatter.com/html-entities.html

I am working with strings, that have HTML entities coming from the ISO-8859-1 table, like á and he.decode() doesn't transform that and there also isn't any option to enable this optionally.

I understand the list of characters will make the source code larger, so it might be an optional submodule for handling these types of characters.

Example string I have:
BEFORE
& Lepiaca penová páska
AFTER
& Lepiaca penová páska

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the he.decode() entry point and inspect how the current HTML entity table is represented. Determine how optional ISO-8859-1 support could be exposed without making the default source unnecessarily larger. Done means the example string decodes its ISO-8859-1 entities when the optional support is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.