PluginProbe
MultiSafepay plugin for WooCommerce / trunk
MultiSafepay plugin for WooCommerce vtrunk
6.11.1 6.12.0 6.13.0 6.2.0 6.2.1 6.3.0 6.3.1 6.4.0 6.4.1 6.4.2 6.4.3 6.5.0 6.5.1 6.6.0 6.6.1 6.6.2 6.7.0 6.7.1 6.7.2 6.7.3 6.8.0 6.8.1 6.8.2 6.8.3 6.9.0 All 84 releases
multisafepay / src / Utils / EscapeUtil.php

EscapeUtil.php in MultiSafepay plugin for WooCommerce trunk, at src/Utils/EscapeUtil.php

41 lines 1019 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php declare(strict_types=1);
2
3 namespace MultiSafepay\WooCommerce\Utils;
4
5 /**
6 * Class EscapeUtil
7 *
8 * @package MultiSafepay\WooCommerce\Utils
9 */
10 class EscapeUtil {
11
12 /**
13 * Return an array with the allowed html tags to escape the output in the setting form
14 *
15 * @return array
16 */
17 public static function get_allowed_html_tags(): array {
18 return array(
19 'input' => array(
20 'name' => array(),
21 'id' => array(),
22 'type' => array(),
23 'placeholder' => array(),
24 'value' => array(),
25 'checked' => true,
26 ),
27 'p' => array(
28 'class' => array(),
29 ),
30 'select' => array(
31 'name' => array(),
32 'id' => array(),
33 ),
34 'option' => array(
35 'value' => array(),
36 'selected' => true,
37 ),
38 );
39 }
40 }
41