| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | $toc_hierarchy_class = ( $toc_hierarchy != 'off' && $toc_hierarchy != '' ) ? 'toc-list betterdocs-hierarchial-toc' : 'toc-list'; |
| 19 | 19 | $html .= $level === 1 ? '<ul class = "' . $toc_hierarchy_class . '">' : '<ul class = "betterdocs-toc-list-level-' . $level . '">'; |
| 20 | 20 | foreach ( $items as $item ) { |
| 21 | 21 | $html .= '<li class = "betterdocs-toc-heading-level-' . ( $item->key ) . '">'; |
| 22 | - $html .= '<a href="#' . esc_attr( $item->tag_number ) . '">' . esc_html( wp_strip_all_tags( $item->title ) ) . '</a>'; | |
| 22 | + $html .= '<a href="#' . $item->tag_number . '">' . strip_tags( $item->title ) . '</a>'; | |
| 23 | 23 | if ( ! empty( $items ) ) { |
| 24 | 24 | $html .= $this->print( $item->items, $toc_hierarchy, ++$level ); |
| 25 | 25 | } else { |
| 26 | 26 | $level = 1; |