javascript - 如何修复 AMP 页面中的“不允许使用标签 pwa”?
问题描述
最近我开始为一家新企业工作。他们需要我解决他的 AMP 页面上的一些问题。某些脚本或某些东西正在向代码添加 pwa 标记。例如:原始 HTML(CKEditor WYSWYG)
<span style="font-family:nunito"><strong>World-class Fertility Treatment at ReproART Georgian-American Center for Reproductive Medicine, Tbilisi, Georgia</strong></span>
AMP 页面上的结果
<span><strong>World-class Fertility Treatment at <pwa class="pwa-mark pwa-mark-done" data-pwa-category="spelling" data-pwa-dictionary-word="ReproART" data-pwa-heavy="false" data-pwa-hint="Unknown word: ReproART" data-pwa-id="pwa-073BFF40B8214D6BF9CF8C5B1D2CDC29" data-pwa-rule-id="SIMPLE_SPELLING" data-pwa-suggestions="Re-proart~repaired">ReproART</pwa> Georgian-American Center for Reproductive Medicine, Tbilisi, Georgia</strong></span>
AMP 上不允许使用此“pwa”标签,它会导致 Google Search Bot 错误。你们中有人知道这里发生了什么吗?它看起来像是一种拼写和写作校正器,但我不知道是什么脚本在做这件事。
此致。
(已编辑)重要提示:数据库记录包含无效标签。我稍后检查数据库。CKEditor 不显示此标签。
解决方案
此问题是由使用ProWritingAid的人的复制粘贴文本引起的
可能的解决方案是:
- 强制纯文本复制。不推荐。
- 在粘贴时应用 removeFormat。CK编辑器
- 立即清理您的数据以保存在数据库/文件/WebStorage 上。
推荐阅读
- python - 如何通过复制/跳过每个 N 项来重新采样数组?
- linux - 在使用 GPU 支持构建 tensorflow 时,额外的“lib64”添加到 CUDA_TOOLKIT_PATH
- r - 如何将时间序列拆分为单独的事件并分配事件 ID?
- oracle - APEX 无法访问登录页面全新 Windows 全新安装
- ruby-on-rails - 允许访客在 Heroku 上创建记录
- ios - 斯威夫特如何将我的图像移回中间后?或将其旋转回原点位置
- python - 我想让命令 python3 运行 python3.7
- python - Django 原始查询输出与 pgAdmin 输出不一致
- netlogo - 使用 nw:load-graphml 在 netlogo 中导入链接品种
- c++ - 带有 OFN_ALLOWMULTISELECT 的 CFileDialog 快捷方式的结果不正确