Closed jeroennoten closed 1 year ago
This fixes a double-escaping bug when the toArray() methods are used in combination with the form_ functions, as described in the README.
toArray()
form_
toArray() should return an array with non-escaped attribute key-value pairs, because they will be escaped when printed.
Therefore, I moved the escaping of the values to the toString() methods and I added some additional tests for the DTO classes to verify the change.
toString()
This additionally fixes a missed escape for the data-[controller]-[key]-class attribute values.
data-[controller]-[key]-class
Excellent PR Jeroen!
This fixes a double-escaping bug when the
toArray()
methods are used in combination with theform_
functions, as described in the README.toArray()
should return an array with non-escaped attribute key-value pairs, because they will be escaped when printed.Therefore, I moved the escaping of the values to the
toString()
methods and I added some additional tests for the DTO classes to verify the change.This additionally fixes a missed escape for the
data-[controller]-[key]-class
attribute values.