
<script>
tinymce.PluginManager.add('strip_attrs', function(editor) {
  function stripAllAttributes() {
      // 获取当前编辑器内容
      var content = editor.getContent();

      // 用 DOMParser 解析，逐个元素清空属性
      var parser = new DOMParser();
      var doc = parser.parseFromString(content, 'text/html');

      doc.querySelectorAll('*').forEach(function(el) {
          // 复制属性列表再删除，避免实时集合问题
          var attrs = Array.prototype.slice.call(el.attributes);
          attrs.forEach(function(attr) {
              el.removeAttribute(attr.name);
          });
      });

      // 写回编辑器
      editor.setContent(doc.body.innerHTML);
  }

  editor.addButton('strip_attrs', {
      text: '去属性',
      tooltip: '移除所有HTML标签属性',
      onclick: stripAllAttributes
  });
});
</script><?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://vtheme.cn/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://vtheme.cn/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://vtheme.cn/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://vtheme.cn/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://vtheme.cn/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://vtheme.cn/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
