Skip to content

Commit

Permalink
Revert "VACMS-20196 Search Result Fix (#34164)" (#34285)
Browse files Browse the repository at this point in the history
This reverts commit 82fbb7d.
  • Loading branch information
chriskim2311 authored Jan 24, 2025
1 parent f54fc1c commit 99b0453
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/applications/search/utils.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
export function formatResponseString(string, stripAll = false) {
const decodedString = string
.replace(/\ue000/g, '<strong>')
.replace(/\ue001/g, '</strong>')
.replace(/&lt;/g, '<')
.replace(/&gt;/g, '>')
.replace(/&quot;/g, '"')
.replace(/&#39;/g, "'")
.replace(/&amp;/g, '&');

if (stripAll) {
return decodedString.replace(/[\ue000\ue001]/g, '');
return string.replace(/[\ue000\ue001]/g, '');
}

return decodedString;
return string.replace(/\ue000/g, '<strong>').replace(/\ue001/g, '</strong>');
}

export function truncateResponseString(string, maxLength) {
Expand Down

0 comments on commit 99b0453

Please sign in to comment.