Skip to content

Commit a88a93b

Browse files
committed
Replace & with &amp in Readme Overview
1 parent 9c51dce commit a88a93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/pipelines/scripts/generate_overview_from_readme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def generate_overview(readme_file, version, overview_file_path):
4949
# the contents of the code fence. Replace '&' with '&' to avoid issues with the HTML parser.
5050
cleaned_readme_content_lines = []
5151
for line in raw_readme_content_lines:
52-
adjusted_line = re.sub(pattern='\&', repl='&', string=line, flags=re.UNICODE)
53-
cleaned_readme_content_lines.append(re.sub(pattern="``` *java +[a-zA-Z0-9.#\-_]*", repl="```java", string=adjusted_line, flags=re.UNICODE))
52+
adjusted_line = re.sub(pattern='\\&', repl='&amp', string=line, flags=re.UNICODE)
53+
cleaned_readme_content_lines.append(re.sub(pattern="``` *java +[a-zA-Z0-9.#\\-_]*", repl="```java", string=adjusted_line, flags=re.UNICODE))
5454

5555
readme_content = ''.join(cleaned_readme_content_lines)
5656

0 commit comments

Comments
 (0)