清理 html 类

$post_class = sanitize_html_class( $post->post_title );
echo '<div class="' . $post_class . '">';