[llvm] [Github] Escape `@` and html in the <details> block (PR #66118)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 11:28:23 PDT 2023
================
@@ -45,6 +46,10 @@ def _get_curent_team(team_name, teams) -> Optional[github.Team.Team]:
return team
return None
+def escape_description(str):
+ # https://github.com/github/markup/issues/1168#issuecomment-494946168
+ str = html.escape(str, False)
+ return str.replace("@", "@<!-- -->")
----------------
cor3ntin wrote:
Nah, it should keep everything @<!-- -->Endilll
https://github.com/llvm/llvm-project/pull/66118
More information about the llvm-commits
mailing list