Some non-content text (e.g. "edit" link, footnote links, ...) gets included in the selected text.
While we may need those in the share url, we do not want them to be included in shared output.
Steps to replicate the issue:
- On itwiki go to https://it.wikipedia.org/wiki/Charlie_Parker?shareHighlight=1&uselang=en
- Highlight any header with some content around it, see the example below:
What happens?:
- the Share card for the text highlighted in the content in the screenshot above will incorrectly shows
- the lead image (filed as /T423603)
- and the word edit (the edit icon was inadvertently included into the highlighted text)
What should have happened instead?:
- a Share card should show only user-visible content
Acceptance criteria
- non-content text (e.g. "edit" link, footnote links, ...) is still included in the share url as needed
- broken in current patch; fix planned to return two forms of the text, with and without exclusions
- non-content text (e.g. "edit" link, footnote links, ...) is not included in the shared output
- done in current patch










