It would be beneficial if you could use safe-svg
for wp_kses
and other similar purposes.
#115
Open
1 task done
Labels
Milestone
Is your enhancement related to a problem? Please describe.
I am using
svg
in my widget (custom HTML block) and sanitizing the content withwp_kses
. However, it strips down the svg markup.It would be nice if
safe-svg
could provide a helper function for such use cases. It wouldn't necessarily need to hook intowp_kses_allowed_html
, but it would be helpful if I could use the sane defaults provided by this plugin.wp_kses( $input, \enshrined\svgSanitize\Sanitizer\kses_extended_ruleset() )
or such would be the use.Designs
No response
Describe alternatives you've considered
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: