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 Added database storage for link redirects and click events (#15423) 2022-09-19 17:12:54 +02:00
index.js Added database storage for link redirects and click events (#15423) 2022-09-19 17:12:54 +02:00
package.json 🐛 Fixed HTML escaping when using outbound link tagging (#16380) 2023-03-08 16:30:54 +01:00
README.md Added database storage for link redirects and click events (#15423) 2022-09-19 17:12:54 +02:00

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