Skip to content

HELP转义修复(cmd_read内联与kpi双重转义) #51

Closed

Description

@FeatherHunter

Part of #1

Question

修复两处现行转义缺陷(红队实证,#45 往来):1)packages/skill-calorie/src/cli/cmd_read.ts lookup 内联 HTML 仅转义 & 和 <,>\"' 可突围;2)render/html.ts kpi 处双重转义。以 base-paint escapeHtml 为唯一真相源收敛。

关票条件

  • 两处改用 escapeHtml;新增转义单测(>\"' 突围用例+幂等用例)全绿;现有单测回归全绿;不合入不关票。

Activity

  1. FeatherHunter commented on Sep 17, 2026

    @FeatherHunter
    OwnerAuthor

    废弃 不执行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    wayfinder:task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions