here is my flow and issue.
I have table A with fields:
- someStringField
- someStringHtmlField
I am writing a row from table A to table B in a field using Ajax. I am not using any JSON encode/decode functions, Laravel automatically converts it by using $casts in my model.
protected $casts = [
'someStringHtmlField' => 'array',
];
So this is my record in database:
{ "someStringField" : "something", "someStringHtmlField" : "Some<br \/>break" }
When I am outputting this in my view, I am getting
Some<br />break"
instead of
Some
title
How could I solve this?