Skip to content

HTML elements in feature description are not included #354

@mpkorstanje

Description

@mpkorstanje

👓 What did you see?

Feature: Belly

  Header text

  </script><script>alert('hello')</script>

  Footer text

  Scenario: a few cukes "</script><script>alert('hello')</script>"
    Given I have 42 cukes in my belly
    When I wait 1 hour
    Then my belly should growl

Note that the first </script><script>alert('hello')</script> from the feature description is not included, the second is.

image

✅ What did you expect to see?

All html elements should be included, rendered as text.

📦 Which tool/library version are you using?

cucumber-html v21.4.1

This is important, because without cucumber/html-formatter#312 the report will not render at all.

🔬 How could we reproduce it?

No response

📚 Any additional context?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions