Hi,
can someone please assist?
I am trying to replace all li tags. I found this online which is only removing the first li tag:
function remove_li ( $menu ){
return preg_replace( array( '#^<li[^>]*>#', '#</li>}$#' ), '', $menu );
}
how would I set it up for removing all of the li tags in this particular case? Also, what does the '#' mean? I couldn't find a reference for it online...
thanks!