filter_xss_admin

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

modules/filter/filter.module, строка 940

Версии
5 – 6
filter_xss_admin($string)

Очень мягкий XSS/HTML фильтр. Только для использования администратором.

Используйте только для полей, для которых неразумно использовать всю систему фильтров, но где некоторое форматирование (как правило inline) желательно и check_plain() не получится применить.

Разрешает все теги, которые могут использоваться в HTML body, за исключением scripts и styles.

▾ 14 функции вызывают filter_xss_admin()

actions_synchronize in includes/actions.inc
Синхронизирует действия, переданные из модуля.
contact_mail_page in modules/contact/contact.pages.inc
drupal_site_offline in includes/common.inc
Generates a site off-line message.
node_help in modules/node/node.module
Реализация hook_help().
node_overview_types in modules/node/content_types.inc
Displays the content type admin overview page.
taxonomy_form in modules/taxonomy/taxonomy.module
Создает элемент формы для выбора терминов из словаря.
taxonomy_form_alter in modules/taxonomy/taxonomy.module
Implementation of hook_form_alter(). Generate a form for selecting terms to associate with a node. We check for taxonomy_override_selector before loading the full vocabulary, so contrib modules can intercept before hook_form_alter and provide scalable...
template_preprocess_forum_list in modules/forum/forum.module
Process variables to format a forum listing.
template_preprocess_maintenance_page in includes/theme.maintenance.inc
The variables generated here is a mirror of template_preprocess_page(). This preprocessor will run it's course when theme_maintenance_page() is invoked. It is also used in theme_install_page() and theme_update_page() to keep all the variables...
template_preprocess_page in includes/theme.inc
Обрабатывает переменные для page.tpl.php
theme_form_element in includes/form.inc
Возвращает темизированный элемент формы.
theme_node_add_list in modules/node/node.pages.inc
Выводит список доступных типов контента для создания нод.
theme_taxonomy_term_page in modules/taxonomy/taxonomy.pages.inc
Рендерит HTML-представление страницы термина таксономии.
user_register in modules/user/user.module
Конструктор формы; Форма регистрации пользователя.

Код

<?php
function filter_xss_admin($string) {
  return filter_xss($string, array('a', 'abbr', 'acronym', 'address', 'b', 'bdo', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'del', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'ins', 'kbd', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему