Previously, when we moved from innerHTML to textContent, it broke the filter options highlighting since the <strong> tag is no longer applied properly. This PR fixes the issue while still avoid insecure document method.
coverage: 62.092% (+0.07%) from 62.02%
when pulling 6c6f8ca7f2dda38523d51c3f385e42219f632398 on dev/fix-filter-options
into bd429a25b0fd63deea864a61200328d404cd1163 on hotfix/v1.17.1.
Previously, when we moved from
innerHTML
totextContent
, it broke the filter options highlighting since the<strong>
tag is no longer applied properly. This PR fixes the issue while still avoid insecure document method.J=TECHOPS-11319 TEST=auto, manual
Ran
npm run test
. Serve answers-search-ui locally and checked out hh theme. Made sure the highlighting are working. https://drive.google.com/file/d/1lBVOA759BPwsqmENIv6kFe2FasR25EKO/view?usp=sharing