Skip to content

fix #4364 【プラグイン】カスタムコンテンツのAI用の仕様書の更新#4388

Open
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4364
Open

fix #4364 【プラグイン】カスタムコンテンツのAI用の仕様書の更新#4388
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4364

Conversation

@kaburk

@kaburk kaburk commented May 22, 2026

Copy link
Copy Markdown
Collaborator

よろしくお願いします。

Copilot AI review requested due to automatic review settings May 22, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

カスタムコンテンツ(BcCustomContent)のテンプレートで getCustomFieldValue() を使う際の、テキストエリア表示(改行処理・エスケープ)と escape => false オプションの挙動を、AI向け仕様書(Copilot Instructions)として明確化する更新です。

Changes:

  • textarea フィールドのデフォルト出力が nl2br(h()) であること(改行維持+HTMLエスケープ)を明記
  • escape => false 指定時にエスケープおよび nl2br() 適用が行われず、生値が返ることと利用上の注意(XSS)を追記
  • escape => false 時に改行を反映したい場合の呼び出し側 nl2br() 適用例を追加

Comment thread .github/instructions/basercms-custom-content.instructions.md
Comment thread .github/instructions/basercms-custom-content.instructions.md

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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

Successfully merging this pull request may close these issues.

2 participants