29.
30. /**
31. * Decode HTML
32. *
33. * @param string $string
34. * @param string $type = 'quotes'
35. *
36. * @return string
37. */
38. public static function decode(string $string, string $type = 'quotes') : string
39. {
40. return htmlspecialchars_decode(trim($string), Helper::toConstant($type, 'ENT_'));
41. }
42.
43. /**
44. * Clean HTML Tag
45. *
46. * @param string $string
47. * @param mixed $allowable = ''
48. *