Skip to content

Commit d772eb6

Browse files
floehopperchrisroos
authored andcommitted
Unescape HTML-escaped apostrophes in regression test artefacts
Since #2098 & #2112, apostrophes rendered via `SmartAnswer::ErbRenderer` have not been HTML-escaped. Now that we are rendering question content via this renderer, we need to update the regression test artefacts for question pages accordingly. I ran the following commands to do this: $ find test/artefacts/calculate-your-holiday-entitlement -name '*.html' | xargs sed -i .bak "s/'/'/g" $ git clean -fd test/artefacts/calculate-your-holiday-entitlement/**/*.bak
1 parent cdc7c8e commit d772eb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/artefacts/calculate-your-holiday-entitlement/annualised-hours.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40-
<p class="hint">This is calculated by excluding statutory entitlement. This calculation isn&#39;t suitable for term-time workers.</p>
40+
<p class="hint">This is calculated by excluding statutory entitlement. This calculation isn't suitable for term-time workers.</p>
4141

4242
<div class="">
4343

test/artefacts/calculate-your-holiday-entitlement/casual-or-irregular-hours.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h2>
3737
<div class="question-body">
3838

3939

40-
<p class="hint">The holiday entitlement may be calculated as the leave builds up (&#39;accrues&#39;) for each hour worked.</p>
40+
<p class="hint">The holiday entitlement may be calculated as the leave builds up ('accrues') for each hour worked.</p>
4141

4242
<div class="">
4343

0 commit comments

Comments
 (0)