Skip to content

Commit

Permalink
handling < and > the 'javadoc' way (#9856)
Browse files Browse the repository at this point in the history
* get rid of & encode. replace &gt; and &lt; w/ &60; and &62;.
  • Loading branch information
scbedd authored Apr 3, 2020
1 parent 9514b76 commit 9dfaec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/pipelines/scripts/inject_codesnippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@
EXCLUSION_ARRAY = ["JavadocCodeSnippetCheck.java"]

HTML_ESCAPE_TABLE = {
"&": "&amp;",
'"': "&quot;",
">": "&gt;",
"<": "&lt;",
">": "&#62;",
"<": "&#60;",
"@": "{@literal @}",
"{": "&#123;",
"}": "&#125;",
Expand Down Expand Up @@ -175,3 +174,4 @@ def check_exclusion(file_name, exclusion_array):
with open(file, "w", encoding="utf-8") as out_file:
for line in amended_file:
out_file.write(line)

0 comments on commit 9dfaec0

Please sign in to comment.