简体   繁体   English

如何修复 AMP 页面中的“不允许使用标签 pwa”?

[英]How to fix “The tag pwa is disallowed” in AMP pages?

Recently I begin to work for a new enterprise.最近我开始为一家新企业工作。 They need I fix some issues on his AMP pages.他们需要我解决他的 AMP 页面上的一些问题。 Some script or something is adding a pwa tag to the code.某些脚本或某些东西正在向代码添加 pwa 标记。 For example: Original HTML(CKEditor WYSWYG)例如:原始 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>

Result on AMP Page 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>

This 'pwa' tags are not allowed on AMP and it causes Google Search Bot errors. AMP 上不允许使用此“pwa”标签,它会导致 Google Search Bot 错误。 Any of you have an idea of what is happening here?你们中有人知道这里发生了什么吗? It look like a kind of spelling and writing corrector, but I have no idea what script is doing that.它看起来像是一种拼写和写作校正器,但我不知道是什么脚本在做这件事。

Best regards.此致。

(Edited) Important : The database record contain the invalid tags. (已编辑)重要提示:数据库记录包含无效标签。 I check later on the DB.我稍后检查数据库。 CKEditor don't show this tag. CKEditor 不显示此标签。

This issue is causing by Copy-Paste text from people that use ProWritingAid此问题是由使用ProWritingAid的人的复制粘贴文本引起的

The possible solutions are:可能的解决方案是:

  1. Force Plain Text copy.强制纯文本复制。 Not recommendable.不推荐。
  2. Apply removeFormat on paste.在粘贴时应用 removeFormat。 CKEditor CKEditor
  3. Clean your data at the moment to save on Data Base / Files / WebStorage.立即清理您的数据以保存在数据库/文件/WebStorage 上。

I think PWA used to insert tags into the HTML but it doesn't anymore.我认为 PWA 曾经在 HTML 中插入标签,但现在不再使用了。 Like Alfredo mentioned, either clean all of your data or clean on access if you have a lot of it.就像阿尔弗雷多提到的那样,要么清理所有数据,要么清理访问权限(如果有很多)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM