Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

fix: lower than and greater than characters are escaped #37

Merged
merged 1 commit into from
May 27, 2024

Conversation

gentlementlegen
Copy link
Member

To avoid being interpreted, < and > are escaped.

Related issue: ubiquity/work.ubq.fi#47 (comment)

@gentlementlegen
Copy link
Member Author

@0x4007 So I managed to run it locally, and this is the result I get:
image
The yellow arrow points the escaping that happened to < and > which are still valid HTML but not interpreted as code. Result preview:
image
Displayed, but as simple characters.

@0x4007
Copy link
Member

0x4007 commented May 27, 2024

The problem I have with this is it appears as though you rendered it on a standalone HTML page, but I want to know how GitHub comments renders it before we accept the pull.

Perhaps it would be simple to just run this on your own bot instance and see how the comment appears?

@gentlementlegen
Copy link
Member Author

@0x4007 Ran against the problematic issue, results here:
ubiquity/work.ubq.fi#47 (comment)

@0x4007 0x4007 merged commit 1ac4959 into ubiquibot:main May 27, 2024
@gentlementlegen gentlementlegen deleted the fix/escape-html branch May 27, 2024 08:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants