cucumber / html-formatter

HTML formatter for reporting Cucumber results
https://cucumber.io/
MIT License
13 stars 4 forks source link

Escape json when writing in html #312

Closed mpkorstanje closed 1 month ago

mpkorstanje commented 2 months ago

🤔 What's changed?

We're writing the json messages inside a <script> element. This means that the </script> element must be escaped. Or more generally, any /.

⚡️ What's your motivation?

Fixes: #311

🏷️ What kind of change is this?

♻️ Anything particular you want feedback on?

Is there a better way to do this?

📋 Checklist: