Support » Plugin: Table of Contents Plus » Not Utf8 / no umlauts

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    I have similar problem with czech characters with diacritics.

    Fixed easily fixed by adding:
    $return = remove_accents( $return );
    in url_anchor_target() at the start of $title cleaning


    my solution – fast work around 🙂
    “sanitize_title() is in a class of functions that help you sanitize potentially unsafe data which allow you to pass an arbitrary variable and receive the clean version based on data typ
    strips HTML & PHP
    strips special chars
    converts all characters to lowercaps
    replaces whitespaces, underscores and periods by hyphens/dashes
    reduces multiple consecutive dashes to one

    toc.php => private function url_anchor_target

    if ( $title ) {
    //$return = trim( strip_tags($title) );
    //anchors like WP slugs  monika 030515
      $return = sanitize_title($title);
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Not Utf8 / no umlauts’ is closed to new replies.