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
Added stripTagsFromObject(), and stripTagsFromCollection() methods to VoyagerBaseController class.
Called the mentioned methods in the 'index', 'show', 'order', and 'relation' methods for $dataTypeContent.
Added strip_tags() and html_entity_decode() PHP methods to the values in the relationship.blade view for the remaining unformatted data being shown.
Finally, ensured that HTML elements and entities are now displayed as rendered content, improving the user experience. ✨👀
How to Test
Navigate to a page with a rich text field (of itself or its relations) in browse, order, show, etc. views.
Verify that HTML tags and entities are now removed, rather than being displayed as raw code.
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. 🙏
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
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. 🙏