[markdown] Escape HTML characters before running Markdown::toBBCode() #1190

Merged
MrPetovan merged 1 commit from bug/10634-markdown-html into develop 2021-10-14 09:56:36 +02:00
MrPetovan commented 2021-10-14 08:12:29 +02:00 (Migrated from github.com)

Fixes https://github.com/friendica/friendica/issues/10634
Replaces https://github.com/friendica/friendica/pull/10866

  • This prevents HTML tag looking text to be purified in the Markdown to BBCode process
Fixes https://github.com/friendica/friendica/issues/10634 Replaces https://github.com/friendica/friendica/pull/10866 - This prevents HTML tag looking text to be purified in the Markdown to BBCode process
annando commented 2021-10-18 11:57:28 +02:00 (Migrated from github.com)

This PR sadly has got an ugly side effect. In markdown you can quote something by starting the line with >. This doesn't work anymore.

This PR sadly has got an ugly side effect. In markdown you can quote something by starting the line with `>`. This doesn't work anymore.
MrPetovan commented 2021-10-18 15:09:30 +02:00 (Migrated from github.com)

D'oh! Let's limit the replacement to opening angled brackets <.

D'oh! Let's limit the replacement to opening angled brackets `<`.
Sign in to join this conversation.
No description provided.