Skip to content

Commit

Permalink
Remove HTML elements in session descriptions
Browse files Browse the repository at this point in the history
for InDesign
  • Loading branch information
balen committed Jun 22, 2024
1 parent 2b41d94 commit f9dc3e4
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 f9dc3e4

Please sign in to comment.