thedevdojo / voyager

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

Fix/rich text display browse mode #5809

Closed ModulesSoft closed 5 months ago

ModulesSoft commented 8 months ago

Pull Request: Fix Showing HTML Elements and HTML Entities in Browse Mode

Description

This pull request resolves an issue where HTML elements and entities were being displayed in their raw form in browse mode when rendering rich text content. 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 mode.
  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 browse mode. Your review and feedback are highly appreciated.

Please review and test these changes to ensure they address the issue effectively.