Skip to content

Commit

Permalink
Merge pull request #2113 from CityOfPhiladelphia/search-titles-fix
Browse files Browse the repository at this point in the history
fix: search titles no longer rendering markup
  • Loading branch information
m-atia authored Apr 9, 2024
2 parents 35ccfd9 + 68fc71e commit 82c8e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wp/wp-content/themes/phila.gov-theme/js/dev/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module.exports = jQuery(document).ready(function($) {

var view = {
url: encodeURI(item.url),
title: item.title,
title: item.title.replace(/<[^>]*>?/gm, ''),
summary: item.highlight.body || (item.body.length > 250 ? item.body.substring(0, 250) + '...' : item.body),
content_type: item.content_type,
icon: ''
Expand Down

0 comments on commit 82c8e5d

Please sign in to comment.