# slider-blocks/3.1.0/includes/Icons/AllowedSvg.php

GutSlider – All in One Slider and Carousel Blocks for Gutenberg, version 3.1.0. 51 lines.

- Page: https://pluginprobe.com/plugins/slider-blocks/3.1.0/code/includes/Icons/AllowedSvg.php
- Raw: https://pluginprobe.com/plugins/slider-blocks/3.1.0/raw/includes/Icons/AllowedSvg.php
- Modified: 2026-03-02T06:30:26+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/slider-blocks/3.1.0/code/includes/Icons/AllowedSvg.php#L10-L20`.

```php
<?php
declare( strict_types=1 );

namespace GutSlider\Icons;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Defines allowed SVG tags for wp_kses sanitization.
 *
 * Provides the allowed tags and attributes configuration used when
 * rendering SVG icons through WordPress's wp_kses() function.
 *
 * @package GutSlider\Icons
 * @since   3.0.0
 */
final class AllowedSvg {

	/**
	 * Get the allowed SVG tag configuration for wp_kses.
	 *
	 * @since 3.0.0
	 *
	 * @return array<string, array<string, bool>> Allowed tags and their attributes.
	 */
	public static function tags(): array {
		return array(
			'svg'   => array(
				'class'           => true,
				'aria-hidden'     => true,
				'aria-labelledby' => true,
				'role'            => true,
				'xmlns'           => true,
				'width'           => true,
				'height'          => true,
				'viewbox'         => true,
				'fill'            => true,
			),
			'g'     => array( 'fill' => true ),
			'title' => array( 'title' => true ),
			'path'  => array(
				'd'         => true,
				'fill'      => true,
				'fill-rule' => true,
			),
		);
	}
}

```
