Minor enhancements for better UI#712
Conversation
|
CC: @kleinmatic |
|
Instead of removing escaping, improve it to render SVG related HTML tags and attributes. CC: @pkevan @maxschmeling |
b80a7ff to
2a785ff
Compare
|
Thanks for the PR @Utsav-Ladani - they look to be 3 distinct changes, so probably better to have them as such, rather than being together. On the SVG element - that really isn't going to be supported in the plugin itself (following core WP's approach), so we'd need to re-think that part. Potentially we could add the output as a filter through |
|
Thanks @pkevan for the clarification. I have raised two separate PRs for each of the tiny changes: For SVG elements, I found that RDB's render functions are sanitizing themselves as well as all inner blocks, which is causing the issue. Modifying What do you think about moving the escaping part to the |
2a785ff to
46cd1b5
Compare
|
Thanks @pkevan for approving above two PRs. I have pushed a different approach to sanitize labels and values earlier while fetching them instead of sanitizing whole output. Let me know your thoughts about this approach. |
Summary
I am build a plugin for the Newspack which extends RDB's capabilities and provide domain centric user experience. I would like to propose following enhancements to plugin for building perfect UI/UX.
RemoveImprove escaping to allow usage of SVGs in RDB blocks