Module Views automatically replace underscores in css classname to hyphens? The situation is like this: I created an article list block with Views, and I want give the list row a custom css classname, ex it's called "focus_img", but when I saw the output, "focus_img" was converted to "focus-img" automatically. How can I turn off this annoying feature? I don't get it, why it made this change, I just need it output what I want..
It's by design... Views module is cleaning class in views_plugin_style.inc..

  /**
   * Return the token replaced row class for the specified row.
   */
  function get_row_class($row_index) {
    if ($this-&gt;uses_row_class()) {
      $class = $this-&gt;options['row_class'];
      if ($this-&gt;uses_fields() &amp;&amp; $this-&gt;view-&gt;field) {
        $class = strip_tags($this-&gt;tokenize_value($class, $row_index));
      }

      $classes = explode(' ', $class);
      foreach ($classes as &amp;$class) {
        $class = drupal_clean_css_identifier($class);
      }
      return implode(' ', $classes);
    }
  }


Below statement is converting _ (Underscore) to - (hyphens)

$class = drupal_clean_css_identifier($class);


If you see documentation of drupal_clean_css_identifier by default filters replaces _ with -.