Skip to content

Commit

Permalink
Merge pull request #2441 from geneontology/issue-2418-gorule-reports-…
Browse files Browse the repository at this point in the history
…small-formatting-issue

For #2418 do not escape text
  • Loading branch information
mugitty authored Feb 21, 2025
2 parents 2c8c56b + 894baad commit 8ca7b1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/combined_assigned_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import copy
import datetime
import yamldown
import html
import sys
import argparse
import logging
Expand Down Expand Up @@ -189,7 +188,8 @@ def output_html(violations_info_list, path, rules_descriptions):
sort_messages(rule, violations)
ruleDesc = rules_descriptions[rule]["title"]

ruleDescEscaped = html.escape(ruleDesc)
# DO NOT ESCAPE
#ruleDescEscaped = ruleDesc #html.escape(ruleDesc, quote=True)

violationsCtr = violationsCtr + 1
## Add to list of violations
Expand All @@ -201,7 +201,7 @@ def output_html(violations_info_list, path, rules_descriptions):
paragraph.append(link)
link.text = rule
ruleDef = ET.Element('span')
ruleDef.text = ruleDescEscaped
ruleDef.text = ruleDesc
paragraph.append(ruleDef)

## Details about the violation
Expand All @@ -212,7 +212,7 @@ def output_html(violations_info_list, path, rules_descriptions):
msgDescPara = ET.Element('p')
body.append(msgDescPara)

msgDescPara.text = ruleDescEscaped
msgDescPara.text = ruleDesc

unorderedList = ET.Element('ul')
body.append(unorderedList)
Expand Down

0 comments on commit 8ca7b1b

Please sign in to comment.