From 9dfaec00eb93f266fd728941a70fedb5b23075e9 Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Fri, 3 Apr 2020 15:01:10 -0700 Subject: [PATCH] handling < and > the 'javadoc' way (#9856) * get rid of & encode. replace > and < w/ &60; and &62;. --- eng/pipelines/scripts/inject_codesnippets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/scripts/inject_codesnippets.py b/eng/pipelines/scripts/inject_codesnippets.py index 5155010f666e9..5626d50baef37 100644 --- a/eng/pipelines/scripts/inject_codesnippets.py +++ b/eng/pipelines/scripts/inject_codesnippets.py @@ -19,10 +19,9 @@ EXCLUSION_ARRAY = ["JavadocCodeSnippetCheck.java"] HTML_ESCAPE_TABLE = { - "&": "&", '"': """, - ">": ">", - "<": "<", + ">": ">", + "<": "<", "@": "{@literal @}", "{": "{", "}": "}", @@ -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) + \ No newline at end of file