[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:05:03 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:

I guess this hides names completely.
Not that it matters much, but removing `@` seems a less intrusive way.

https://github.com/llvm/llvm-project/pull/66118


More information about the llvm-commits mailing list