Ghost/ghost/link-replacer
Simon Backx 4184b279d2
🐛 Fixed HTML escaping when using outbound link tagging (#16380)
fixes https://github.com/TryGhost/Team/issues/2666

- Somehow occurrences of `&map_` got replaced with `↦`
- Disables escaping &, ', " and other HTML characters when not needed
(escaping is already handled by mobiledoc/lexical)
- Bumps unit test coverage of link replacer to 100%
2023-03-08 16:30:54 +01:00
..
lib 🐛 Fixed HTML escaping when using outbound link tagging (#16380) 2023-03-08 16:30:54 +01:00
test 🐛 Fixed HTML escaping when using outbound link tagging (#16380) 2023-03-08 16:30:54 +01:00
.eslintrc.js
index.js
package.json 🐛 Fixed HTML escaping when using outbound link tagging (#16380) 2023-03-08 16:30:54 +01:00
README.md

Link Replacement

Replace links in a HTML string to add attribution and link tracking

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests