[markdown] Escape mentions which username can contain Markdown-like syntax #1039
No reviewers
Labels
No labels
2018.09
2019.01
2019.03
2019.06
2019.09
2019.12
2020.03
2020.06
2020.09
2020.12
2021.03
2021.07
2021.09
2022.02
2022.06
2022.09
2022.12
2023.04
2023.05
2023.09
2024.03
2024.06
2024.09
2024.12
dependencies
Hackathon 2021
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: friendica/friendica-addons#1039
Loading…
Reference in a new issue
No description provided.
Delete branch "bug/9486-markdown-escape-mentions"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes https://github.com/friendica/friendica/issues/9486
This PR normalizes the block escaping by using both
BBCode::performWithEscapedTags
to escape tags andStrings::performWithEscapedBlocks
to escape mentions.The regular expression is voluntarily restricted to mentions in the form
@user@domain.tld
or!user@domain.tld
but it could be expanded to include hashtags as well.