OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
208 stars 112 forks source link

HtmlParser: Support named entities in body text #1903

Closed 20kdc closed 3 months ago

20kdc commented 3 months ago

This gives HtmlParser the ability to support HTML character entities in body text. This is primarily useful to clean up text such as """, "'" ,and "!".

This was tested with Tomeno's OpenDream branch of Console but with changes to interface/default.dmf reverted and then the computer_docked window deleted (it attempts to share ownership of controls). When operating a computer and "> "-commands are typed, the window no longer shows HTML entities with this patch.

...I'm sure there are simpler ways to test this, but that's where I found the issue.

wixoaGit commented 3 months ago

...I'm sure there are simpler ways to test this, but that's where I found the issue.

TestGame's say verb isn't escaped so that works fine