Exclude templates and parent "ul" element from html.