Просмотр исходного кода

Ticket #4558 - Build-in API support: Different.

AntonLV 2 лет назад
Родитель
Сommit
9f12071c72
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      template/scripts/BxBaseFormView.php

+ 5 - 0
template/scripts/BxBaseFormView.php

@@ -390,6 +390,11 @@ class BxBaseFormView extends BxDolForm
                     }
                     $aInput['value'] = $aVars;
                 }
+
+                if (isset($aInput['type']) && 'textarea' == $aInput['type']){
+                    if (isset($aInput['value'], $aInput['html']) && (int)$aInput['html'] == 0)
+                        $aInput['value'] = strip_tags($aInput['value']);
+                }
             }
             else{
                 $keysToRemove[] = $key;