Skip to content

Apostrophe in Maillable::assertSeeInHtml() not escaped properly #55913

@raveren

Description

@raveren

Laravel Version

11.45.0

PHP Version

8.3

Database Driver & Version

No response

Description

The exact example in PR that fixed this three years ago is broken again since the single apostrophe was not covered in the tests:

Steps To Reproduce

The mailable blade:

{{ "O'Connor" }}

The test assertion (which fails)

$mail->assertSeeInHtml("O'Connor");

Test output:

Failed asserting that 'O'Connor\n
' [ASCII](length: 14) contains "O'Connor" [ASCII](length: 8).

Also related to a fairly recently reported bug: #54830

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions