laravel-editor
laravel-editor copied to clipboard
Getting html entities in edit
When I load content into an editor (using view($content), as the docs say), any apostrophes show up as '. They are getting stored in my database that way, too.
Why?
For instance:
In the editor, I type: I'm fabulous! In my database, it's stored as: I'm fabulous!
If I pull it out of the database and wrap it in the html_entity_decode() method, it returns to: I'm fabulous!
But no matter what I do, when I pre-fill an editor with the content, it's always: I'm fabulous!
Please help!