Skip to content

Text Area for Customizable Options shows line break html<br/> on the front end in cart area if a user enters more than 55 characters #32977

Closed
@adamstapley

Description

@adamstapley

Summary of the issue
We have Customizable Options with text areas where people can enter up to 350 characters. If they enter a message that's 50 characters with line breaks it all works OK and displays properly in the cart area. If they enter more than 55 characters the cart area displays the html
line break code

Preconditions (*)

Information on your environment
Running Magento 2.4.2
Dedicated server
PHP 7.3
MariaDB10.3

Steps to reproduce (*)

Steps to reproduce
Create a product in admin, create two customizable options both with text area option with 350 characters allowed. Enter less than 55 characters in one text area and more than 55 in the other both with spaces and line breaks. Add the item to your cart and you will see the html line breaks in the text area option with more than 55 characters.

Expected result (*)

Cart should just show the text entered in each option and not the html line break code

Actual result (*)

Cart shows html in option
Capture

Metadata

Metadata

Assignees

Labels

Component: CheckoutFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions