unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Escape error messages #269

Closed pederhan closed 2 months ago

pederhan commented 2 months ago

This PR escapes exception messages using prompt_toolkit's own HTML escaping function before passing them to HTML().

pederhan commented 2 months ago

Need to iterate on this a bit; we probably want self.formatted_exception to be able to provide HTML tags, but we want the content inside those tags to be escaped somehow.