thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

Fix BREAD rich text display issue #5840

Open ModulesSoft opened 4 months ago

ModulesSoft commented 4 months ago

Pull Request: Fix Showing HTML Elements and HTML Entities in BREAD views

Description

This pull request resolves the issue where HTML tags and entities were returned for rich-text values by the 'index', 'show', 'order', and 'relation' BREAD methods, as well as a fix for values displayed in relationship.blade for better 'edit' view. 🛠️ The problem led to an unformatted and confusing user experience. 🔍

Changes Made

How to Test

  1. Navigate to a page with a rich text field (of itself or its relations) in browse, order, show, etc. views.
  2. Verify that HTML tags and entities are now removed, rather than being displayed as raw code.
  3. Confirm that the rich text content appears as intended and is easy to read.

Additional Notes

This fix enhances the user experience by ensuring that rich text preview is correctly displayed in BREAD views. Your review and feedback are highly appreciated. 🙏

ModulesSoft commented 3 months ago

Following is a snapshot of the problem for one case.

Screenshot 2024-03-16 at 8 50 24 AM