Skip to content

Commit

Permalink
Merge pull request #1088 from PlanoramaEvents/adjust-indesign-nokogiri
Browse files Browse the repository at this point in the history
PLAN-1011 Remove HTML elements in session descriptions
  • Loading branch information
Gailbear authored Jun 22, 2024
2 parents a817cc8 + f9dc3e4 commit 64fab83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/xml_templates/schedule.nokogiri
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ xml.schedule {
session.recorded ? xml.recorded("- Recorded") : ""
xml.tags(session.tag_list.join(", "))
}
xml.description(session.description)
# Remove HTML from description done via Nokogiri parse using the text method
description = Nokogiri::HTML.parse session.description
# Using the .text method also translates characters to used the proper representation
xml.description(description.text)
# If there are no visible participants, do not create an empty
# <participants> element, because InDesign would render that
# as an empty space.
Expand Down

0 comments on commit 64fab83

Please sign in to comment.