Jetpack: Instant Search: HTML entities in result title

Created on 10 Dec 2020  Â·  4Comments  Â·  Source: Automattic/jetpack

Steps to reproduce the issue

  1. Go to FG (internal users only)
  2. Search for "laptop"

What I expected


HTML entities are turned into their corresponding character for display.

What happened instead

Big old & in my results.

Screenshots

Screen Shot 2020-12-10 at 14 20 07

Instant Search Search [Type] Bug

Most helpful comment

Deployed fix in r218631-wpcom

All 4 comments

Ugh... I guess we messed something up when trying to fix some related encoding problems the other week.

Since this seems to be cause by my change, I fixed it - The issue was with double-encoding of html entities. I think that this should solve it
D54569-code

Deployed fix in r218631-wpcom

Can confirm that fixes the original issue ✅ Thanks for the patch @robfelty!

Screen Shot 2020-12-22 at 10 28 54

Was this page helpful?
0 / 5 - 0 ratings