| @@ -41,9 +41,21 @@ | ||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | public function renderHTMR($title) |
| 44 | 44 | { |
| 45 | - return $title; | |
| 45 | + $allowed_html = wp_kses_allowed_html('post'); | |
| 46 | + | |
| 47 | + $allowed_html['iframe'] = [ | |
| 48 | + 'src' => true, | |
| 49 | + 'width' => true, | |
| 50 | + 'height' => true, | |
| 51 | + 'frameborder' => true, | |
| 52 | + 'allow' => true, | |
| 53 | + 'allowfullscreen' => true, | |
| 54 | + 'title' => true, | |
| 55 | + 'style' => true, | |
| 56 | + ]; | |
| 57 | + return wp_kses($title, $allowed_html); | |
| 46 | 58 | } |
| 47 | 59 | |
| 48 | 60 | public function getAtomicCls($element) |
| 49 | 61 | { |
| @@ -60,11 +72,11 @@ | ||
| 60 | 72 | } |
| 61 | 73 | $cls = ".$this->_fk-$element"; |
| 62 | 74 | if (isset($this->_form_atomic_Cls_map->{$cls})) { |
| 63 | 75 | $getAtomicCls = $this->_form_atomic_Cls_map->{$cls}; |
| 64 | - return implode(' ', $getAtomicCls) . " {$this->_fk}-{$element}"; | |
| 76 | + return implode(' ', $getAtomicCls) . " {$this->_fk}-{$element} bf-{$element}"; | |
| 65 | 77 | } |
| 66 | - return "{$this->_fk}-{$element}"; | |
| 78 | + return "{$this->_fk}-{$element} bf-{$element}"; | |
| 67 | 79 | } |
| 68 | 80 | |
| 69 | 81 | public function replaceToBackSlash($str) |
| 70 | 82 | { |