apostrophecms / sanitize-html

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis. Built on htmlparser2 for speed and tolerance
MIT License
3.68k stars 349 forks source link

Fix behavour for numbers #594

Closed alexander-schranz closed 1 year ago

alexander-schranz commented 1 year ago

Fixes https://github.com/apostrophecms/sanitize-html/issues/593

Summary

Summarize the changes briefly, including which issue/ticket this resolves. If it closes an existing Github issue, include "Closes #[issue number]"

What are the specific steps to test this change?

For example:

  1. npm install
  2. npm run test

What kind of change does this PR introduce?

(Check at least one)

Make sure the PR fulfills these requirements:

If adding a new feature without an already open issue, it's best to open a feature request issue first and wait for approval before working on it.

Other information:

alexander-schranz commented 1 year ago

@boutell Thank you for the fast responses and review 👍