I have a DB with text fields that contain line breaks, e.g.
2x Bag Chocolates
2x Cleaning Spray
The problem is I want to be able to compare the Database with what’s being types in a textarea field in a form.
But it doesn’t work as the DB is spread over two lines, and the form displays is different.
I am not sure why its not working. In the DB dynamic field value, its displayed over two lines. The textarea form field uses a class
.formatted-text {
white-space: pre-line;
}
I want to compare the text in the DB field (which is broken over two lines) with the text being entered in a form field textarea, and if its the same a green tick is displayed