Ejemplo n.º 1
0
/**
 * Wrap element into lis.
 *
 * Takes a string and wraps it into a pair
 * or <li> tags.
 *
 * @since  3.1.3
 * @param  string $entry  The entry to wrap
 * @return string         The wrapped element
 */
function wpas_wrap_li($entry)
{
    if (is_array($entry)) {
        $entry = wpas_array_to_ul($entry);
    }
    $entry = wp_kses_post($entry);
    return "<li>{$entry}</li>";
}
/**
 * Wrap element into lis.
 *
 * Takes a string and wraps it into a pair
 * or <li> tags.
 *
 * @since  3.1.3
 * @param  string $entry  The entry to wrap
 * @return string         The wrapped element
 */
function wpas_wrap_li($entry)
{
    if (is_array($entry)) {
        $entry = wpas_array_to_ul($entry);
    }
    $entry = htmlentities($entry);
    return "<li>{$entry}</li>";
}