Skip to content

Commit

Permalink
unescape description html in gh_job_details, html_safe on jobs#show
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sussman committed May 21, 2024
1 parent dee7ed2 commit 8d864c1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2,447 deletions.
2 changes: 1 addition & 1 deletion app/controllers/jobs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def show
@job = Job.find(params[:id])
@company = @job.company
@saved_job = SavedJob.new
@description = sanitize @job.description
@description = sanitize(@job.description).html_safe
end

def add_job
Expand Down
2 changes: 1 addition & 1 deletion app/models/concerns/ats/greenhouse/job_details.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def job_details(job, data)
job.assign_attributes(
posting_url: data['absolute_url'],
title:,
description: Flipper.enabled?(:job_description) ? data['description'] : 'Not added yet',
description: Flipper.enabled?(:job_description) ? CGI.unescapeHTML(data['content']) : 'Not added yet',
non_geocoded_location_string: location,
department: data.dig('departments', 0, 'name'),
office: data.dig('offices', 0, 'name'),
Expand Down
Loading

0 comments on commit 8d864c1

Please sign in to comment.