Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Make HTML-Escaping optional

オープン 初心者向け
#2,456 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
api

調査の方向性

Start by reading the JSON dump and escaping logic in util.py, then check the tests that cover JSON output. Make the escaping configurable as described, with the default behavior decided consistently with the existing setting. Done when the option controls whether < and > are escaped and the relevant tests pass.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
In the version 0.24.0 the feature "escape < and > on JSON dump" was introduced. We are using oracle provider and the necessary escaping is done on the database side. Because of escaping in pygeoapi our application is working buggy.

Describe the solution you'd like
It would be better to make the escaping optional, f.e. through the environment variable.

Describe alternatives you've considered

Additional context
Now we are forced to use the adjustment of the util.py:

DO_JSON_ESCAPE = os.getenv('JSON_ESCAPE', 'false').lower()
...
...
    # do escaping optional
    if DO_JSON_ESCAPE in ('true', '1', 'yes'):
        LOGGER.debug('Escaping < and >')
        json_dump = json_dump.replace('<', '&lt;')
        json_dump = json_dump.replace('>', '&gt;')
主要言語
Python
スター
626
フォーク
339
平均マージ
2日 9時間
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

geopython/pygeoapi のほかの issue

geopython/pygeoapi の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。