Skip to content

Commit

Permalink
Merge pull request #116 from ONSdigital/EAR-1836-apostrophes-multiple…
Browse files Browse the repository at this point in the history
…-choice-answers

EAR-1836 Apostrophes in multiple choice answers
  • Loading branch information
farres1 authored Oct 10, 2022
2 parents 9ab88ad + 759c93c commit cf5bad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eq_schema/schema/Answer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class Answer {
ctx
) {
const option = {
label: buildContents(label, ctx),
label: buildContents(label, ctx, true),
value: buildContents(label, ctx, true),
};

Expand Down
2 changes: 1 addition & 1 deletion src/utils/HTMLUtils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const unescapePiping = (value, isMultipleChoiceValue) => {
if (!isMultipleChoiceValue) {
updatedValue = replace(/'/g, `'`, value);
} else {
updatedValue = replace(/'/g, `'`, value);
updatedValue = replace(/'/g, `\u2019`, value);
}
return updatedValue;
};
Expand Down

0 comments on commit cf5bad5

Please sign in to comment.