Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 798 forks source link

Pay with PayPal Block: Jetpack 9.0.x Stops Rendering HTML Tags in Description Fields. #17576

Open htdat opened 4 years ago

htdat commented 4 years ago

Steps to reproduce the issue

  1. Create a site with Jetpack 8.9.1 with a proper JP plan to use Pay with PayPal block.
  2. Create a new `Pay with PayPal block` with the description field like the following:
    <strong>line 1</strong>
    <p>line 2</p>
  3. Check the front-end. The HTML tags are generated OK. Markup on 2020-10-22 at 13:01:43
  4. Update Jetpack to 9.0.2 and try to edit the post including this Pay with PayPal block.
  5. Check the front-end. The HTML tags are escaped: Markup on 2020-10-22 at 13:03:04

What I expected

HTML tags should be generated properly in JP 9.0.x like the way it did in JP 8.9.x.

What happened instead

HTML tags are escaped in JP 9.0.x

Other notes

It looks like this is a regression of this PR https://github.com/Automattic/jetpack/pull/17256 Tix: 3424304-zen

jeherve commented 4 years ago

cc @mmtr