Note on SVG File Cleanup
-
The plugin utilizes a script to clean up the SVG files. This cleanup process removes any malicious code present in the SVG files.
To allow certain XML tags and attributes, you can use the following code to permit new attributes and tags:
// XML TAGS add_filter( 'esw_svg_allowed_tags', function ($tags) { $tags[] = 'p'; $tags[] = 'info'; return $tags; } );
// XML attributes add_filter( 'esw_svg_allowed_attributes', function ( $attributes ) { $attributes[] = 'src'; return $attributes; } );
- The topic ‘Note on SVG File Cleanup’ is closed to new replies.