[llvm] [Github] Escape `@` and html in the <details> block (PR #66118)
Vlad Serebrennikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 12 11:32:37 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("@", "@<!-- -->")
----------------
Endilll wrote:
Ah, so you're inserting a dummy tag to break @ from name.
That's smart!
https://github.com/llvm/llvm-project/pull/66118
More information about the llvm-commits
mailing list