Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table解析有异议 #1

Open
wangguanl opened this issue Jan 20, 2023 · 1 comment
Open

table解析有异议 #1

wangguanl opened this issue Jan 20, 2023 · 1 comment

Comments

@wangguanl
Copy link

<table style="visibility: visible;"><thead style="visibility: visible;"><tr style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" class="js_darkmode__9"><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__10"><strong style="visibility: visible;">水平</strong></th><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__11"><strong style="visibility: visible;">结果</strong></th><th style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;" class="js_darkmode__12"><strong style="visibility: visible;">备注</strong></th></tr></thead><tbody style="border-width: 0px; border-style: initial; border-color: initial; visibility: visible;"><tr style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;" class="js_darkmode__13"><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__14"><strong style="visibility: visible;">不能</strong>按时保质完成业务需求</td><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__15">差(3.25)</td><td style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;" class="js_darkmode__16">不具备前端基本能力,达不到公司要求</td></tr><tr style="border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: rgb(248, 248, 248);" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: rgb(248, 248, 248);" class="js_darkmode__17"><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__18"><strong></strong>按时保质完成业务需求</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__19">中(3.5)</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__20">具备前端基本能力,符合公司要求</td></tr><tr style="border-width: 1px 0px 0px;border-right-style: initial;border-bottom-style: initial;border-left-style: initial;border-right-color: initial;border-bottom-color: initial;border-left-color: initial;border-top-style: solid;border-top-color: rgb(204, 204, 204);background-color: white;" data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white;" class="js_darkmode__21"><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__22">创造新方法新思路,能帮助业务<strong>更快</strong>或者<strong>更好</strong>的迭代</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__23">高(3.75)</td><td style="border-color: rgb(204, 204, 204);min-width: 85px;" data-style="border-color: rgb(204, 204, 204); min-width: 85px;" class="js_darkmode__24">能体现个人价值,超出公司要求</td></tr></tbody></table>

上面的代码格式化后页面会报错

<table style="visibility: visible">
  <thead style="visibility: visible">
    <tr
      style="
        border-width: 1px 0px 0px;
        border-right-style: initial;
        border-bottom-style: initial;
        border-left-style: initial;
        border-right-color: initial;
        border-bottom-color: initial;
        border-left-color: initial;
        border-top-style: solid;
        border-top-color: rgb(204, 204, 204);
        background-color: white;
        visibility: visible;
      "
      data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;"
      class="js_darkmode__9"
    >
      <th
        style="
          border-top-width: 1px;
          border-color: rgb(204, 204, 204);
          text-align: left;
          background-color: rgb(240, 240, 240);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
        class="js_darkmode__10"
      >
        <strong style="visibility: visible">水平</strong>
      </th>
      <th
        style="
          border-top-width: 1px;
          border-color: rgb(204, 204, 204);
          text-align: left;
          background-color: rgb(240, 240, 240);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
        class="js_darkmode__11"
      >
        <strong style="visibility: visible">结果</strong>
      </th>
      <th
        style="
          border-top-width: 1px;
          border-color: rgb(204, 204, 204);
          text-align: left;
          background-color: rgb(240, 240, 240);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-top-width: 1px; border-color: rgb(204, 204, 204); text-align: left; background-color: rgb(240, 240, 240); min-width: 85px; visibility: visible;"
        class="js_darkmode__12"
      >
        <strong style="visibility: visible">备注</strong>
      </th>
    </tr>
  </thead>
  <tbody
    style="
      border-width: 0px;
      border-style: initial;
      border-color: initial;
      visibility: visible;
    "
  >
    <tr
      style="
        border-width: 1px 0px 0px;
        border-right-style: initial;
        border-bottom-style: initial;
        border-left-style: initial;
        border-right-color: initial;
        border-bottom-color: initial;
        border-left-color: initial;
        border-top-style: solid;
        border-top-color: rgb(204, 204, 204);
        background-color: white;
        visibility: visible;
      "
      data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white; visibility: visible;"
      class="js_darkmode__13"
    >
      <td
        style="
          border-color: rgb(204, 204, 204);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
        class="js_darkmode__14"
      >
        <strong style="visibility: visible">不能</strong>按时保质完成业务需求
      </td>
      <td
        style="
          border-color: rgb(204, 204, 204);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
        class="js_darkmode__15"
      >
        差(3.25)
      </td>
      <td
        style="
          border-color: rgb(204, 204, 204);
          min-width: 85px;
          visibility: visible;
        "
        data-style="border-color: rgb(204, 204, 204); min-width: 85px; visibility: visible;"
        class="js_darkmode__16"
      >
        不具备前端基本能力,达不到公司要求
      </td>
    </tr>
    <tr
      style="
        border-width: 1px 0px 0px;
        border-right-style: initial;
        border-bottom-style: initial;
        border-left-style: initial;
        border-right-color: initial;
        border-bottom-color: initial;
        border-left-color: initial;
        border-top-style: solid;
        border-top-color: rgb(204, 204, 204);
        background-color: rgb(248, 248, 248);
      "
      data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: rgb(248, 248, 248);"
      class="js_darkmode__17"
    >
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__18"
      >
        <strong></strong>按时保质完成业务需求
      </td>
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__19"
      >
        中(3.5)
      </td>
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__20"
      >
        具备前端基本能力,符合公司要求
      </td>
    </tr>
    <tr
      style="
        border-width: 1px 0px 0px;
        border-right-style: initial;
        border-bottom-style: initial;
        border-left-style: initial;
        border-right-color: initial;
        border-bottom-color: initial;
        border-left-color: initial;
        border-top-style: solid;
        border-top-color: rgb(204, 204, 204);
        background-color: white;
      "
      data-style="border-width: 1px 0px 0px; border-right-style: initial; border-bottom-style: initial; border-left-style: initial; border-right-color: initial; border-bottom-color: initial; border-left-color: initial; border-top-style: solid; border-top-color: rgb(204, 204, 204); background-color: white;"
      class="js_darkmode__21"
    >
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__22"
      >
        创造新方法新思路,能帮助业务<strong>更快</strong>或者<strong>更好</strong>的迭代
      </td>
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__23"
      >
        高(3.75)
      </td>
      <td
        style="border-color: rgb(204, 204, 204); min-width: 85px"
        data-style="border-color: rgb(204, 204, 204); min-width: 85px;"
        class="js_darkmode__24"
      >
        能体现个人价值,超出公司要求
      </td>
    </tr>
  </tbody>
</table>
@wangguanl
Copy link
Author

应该是正则解析的代码片段有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant