logo
  • 教程列表
  • SO官方文档
  • WordPress 中的安全性 - 消毒
    • 清理文本字段
    • 消除头衔
    • 清理电子邮件
    • 清理 html 类
    • 清理文件名
    • 清理用户名
  1. StackOverflow 文档
  2. WordPress 教程
  3. WordPress 中的安全性 - 消毒
  4. 清理 html 类

清理 html 类

Created: November-22, 2018

$post_class = sanitize_html_class( $post->post_title );
echo '<div class="' . $post_class . '">';
  • 清理文件名
  • 清理电子邮件

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明