ap_form_allowed_tags()
Description #
Allow HTML tags.
Source #
File: includes/functions.php
function ap_form_allowed_tags() {
global $ap_kses_check;
$ap_kses_check = true;
$allowed_style = array(
'align' => true,
);
$allowed_tags = array(
'p' => array(
'style' => $allowed_style,
'title' => true,
),
'span' => array(
'style' => $allowed_style,
),
'a' => array(
'href' => true,
'title' => true,
),
'br' => array(),
'em' => array(),
'strong' => array(
'style' => $allowed_style,
),
'pre' => array(),
'code' => array(),
'blockquote' => array(),
'img' => array(
'src' => true,
'style' => $allowed_style,
),
'ul' => array(),
'ol' => array(),
'li' => array(),
'del' => array(),
);
/**
* Filter allowed HTML KSES tags.
*
* @param array $allowed_tags Allowed tags.
*/
return apply_filters( 'ap_allowed_tags', $allowed_tags );
}
Expand full source code Collapse full source code View on GitHub: includes/functions.php:421
Add your comment