次のようなモデルがあります。
class Foo(ndb.Model):
bar = ndb.TextProperty(required=True)
# other properties
テンプレートにjinja2を使用しています:
{{ bar|safe }}
私はこれに「入れます」:
<p>I think it is always going to be challenging planning a wedding in a foreign country. 1234 Weddings was able to pre-arrange everything before our arrival and even meet us at the airport to attend to last minute details.<br> The wedding itself was even more amazing than we could have imagined and flawless. For our day, 1234 Weddings became a part of our family and our memories. We are so greatful for the professional communication and creativity that made our day so special.</p>
そしてndbはテキストをマングルし、これを出力します:
<p>I think it is always going to be challenging planning a wedding in a for=
eign country. 1234 weddings was able to pre-arrange everything before our a=
rrival and even meet us at the airport to attend to last minute details.<br=
>The wedding itself was even more amazing than we could have imagined and f=
lawless. For our day, 1234 Weddings became a part of our family and our mem=
ories. We are so greatful for the professional communication and creativity=
that made our day so special.</p>
これは、展開したサイトでのみ発生します。localhost の同一のコードでは、この問題は発生しません。
関連する可能性があるもの:
- 私のローカル アプリ エンジンには永続的なデータストアがありません。
- bar はもともと「StringProperty」タイプでした。タイプを「TextProperty」に変更した後に問題に気付きましたが、変更前に広範なテストが行われていないため、それ以前に問題が存在していた可能性があります。
どんな助けでも大歓迎です。
ティア。