We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
L'affichage des pseudos dans la liste des tutoriels / article déconne
L'affichage du pseudo "Bat'" n'est pas correct.

![bug](https://cloud.githubusercontent.com/assets/6099338/8538835/07cccad8-2473-11e5-8849-c645a0c34875.png)

Possible de voir le comportement sur la page: https://zestedesavoir.com/tutoriels/?tag=dot-net


--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `zds/utils/templatetags/captureas.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 from django import template
4 
5 register = template.Library()
6 
7 """
8 Define a tag allowing to capture template content as a variable.
9 """
10 
11 
12 @register.tag(name='captureas')
13 def do_captureas(parser, token):
14     """
15     Define a tag allowing to capture template content as a variable.
16 
17     :param parser: The django template parser
18     :param token: tag token (tag_name + variable_name)
19     :return: Template node.
20     """
21 
22     try:
23         _, variable_name = token.split_contents()
24     except ValueError:
25         raise template.TemplateSyntaxError("'captureas' node requires a variable name.")
26 
27     nodelist = parser.parse(('endcaptureas',))
28     parser.delete_first_token()
29 
30     return CaptureasNode(nodelist, variable_name)
31 
32 
33 class CaptureasNode(template.Node):
34     """
35     Capture end render node content to a variable name.
36     """
37 
38     def __init__(self, nodelist, variable_name):
39         """
40         Create a template node which render `nodelist` to `variable_name`.
41 
42         :param nodelist: The node list to capture.
43         :param variable_name: The variable name which will gain the rendered content.
44         """
45         self.__node_list = nodelist
46         self.__variable_name = variable_name
47 
48     def render(self, context):
49         """
50         Render the node list to the variable name.
51 
52         :param context: Current context.
53         :return: Empty string
54         :rtype: str
55         """
56         output = self.__node_list.render(context)
57         context[self.__variable_name] = output.strip()
58         return ''
59
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/zds/utils/templatetags/captureas.py b/zds/utils/templatetags/captureas.py
--- a/zds/utils/templatetags/captureas.py
+++ b/zds/utils/templatetags/captureas.py
@@ -1,6 +1,7 @@
 # -*- coding: utf-8 -*-
 
 from django import template
+from django.utils.safestring import mark_safe
 
 register = template.Library()
 
@@ -54,5 +55,5 @@
         :rtype: str
         """
         output = self.__node_list.render(context)
-        context[self.__variable_name] = output.strip()
+        context[self.__variable_name] = mark_safe(output.strip())
         return ''

{"golden_diff": "diff --git a/zds/utils/templatetags/captureas.py b/zds/utils/templatetags/captureas.py\n--- a/zds/utils/templatetags/captureas.py\n+++ b/zds/utils/templatetags/captureas.py\n@@ -1,6 +1,7 @@\n # -*- coding: utf-8 -*-\n \n from django import template\n+from django.utils.safestring import mark_safe\n \n register = template.Library()\n \n@@ -54,5 +55,5 @@\n         :rtype: str\n         \"\"\"\n         output = self.__node_list.render(context)\n-        context[self.__variable_name] = output.strip()\n+        context[self.__variable_name] = mark_safe(output.strip())\n         return ''\n", "issue": "L'affichage des pseudos dans la liste des tutoriels / article d\u00e9conne\nL'affichage du pseudo \"Bat'\" n'est pas correct.\n\n![bug](https://cloud.githubusercontent.com/assets/6099338/8538835/07cccad8-2473-11e5-8849-c645a0c34875.png)\n\nPossible de voir le comportement sur la page: https://zestedesavoir.com/tutoriels/?tag=dot-net\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\n\nregister = template.Library()\n\n\"\"\"\nDefine a tag allowing to capture template content as a variable.\n\"\"\"\n\n\n@register.tag(name='captureas')\ndef do_captureas(parser, token):\n    \"\"\"\n    Define a tag allowing to capture template content as a variable.\n\n    :param parser: The django template parser\n    :param token: tag token (tag_name + variable_name)\n    :return: Template node.\n    \"\"\"\n\n    try:\n        _, variable_name = token.split_contents()\n    except ValueError:\n        raise template.TemplateSyntaxError(\"'captureas' node requires a variable name.\")\n\n    nodelist = parser.parse(('endcaptureas',))\n    parser.delete_first_token()\n\n    return CaptureasNode(nodelist, variable_name)\n\n\nclass CaptureasNode(template.Node):\n    \"\"\"\n    Capture end render node content to a variable name.\n    \"\"\"\n\n    def __init__(self, nodelist, variable_name):\n        \"\"\"\n        Create a template node which render `nodelist` to `variable_name`.\n\n        :param nodelist: The node list to capture.\n        :param variable_name: The variable name which will gain the rendered content.\n        \"\"\"\n        self.__node_list = nodelist\n        self.__variable_name = variable_name\n\n    def render(self, context):\n        \"\"\"\n        Render the node list to the variable name.\n\n        :param context: Current context.\n        :return: Empty string\n        :rtype: str\n        \"\"\"\n        output = self.__node_list.render(context)\n        context[self.__variable_name] = output.strip()\n        return ''\n", "path": "zds/utils/templatetags/captureas.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\nfrom django import template\nfrom django.utils.safestring import mark_safe\n\nregister = template.Library()\n\n\"\"\"\nDefine a tag allowing to capture template content as a variable.\n\"\"\"\n\n\n@register.tag(name='captureas')\ndef do_captureas(parser, token):\n    \"\"\"\n    Define a tag allowing to capture template content as a variable.\n\n    :param parser: The django template parser\n    :param token: tag token (tag_name + variable_name)\n    :return: Template node.\n    \"\"\"\n\n    try:\n        _, variable_name = token.split_contents()\n    except ValueError:\n        raise template.TemplateSyntaxError(\"'captureas' node requires a variable name.\")\n\n    nodelist = parser.parse(('endcaptureas',))\n    parser.delete_first_token()\n\n    return CaptureasNode(nodelist, variable_name)\n\n\nclass CaptureasNode(template.Node):\n    \"\"\"\n    Capture end render node content to a variable name.\n    \"\"\"\n\n    def __init__(self, nodelist, variable_name):\n        \"\"\"\n        Create a template node which render `nodelist` to `variable_name`.\n\n        :param nodelist: The node list to capture.\n        :param variable_name: The variable name which will gain the rendered content.\n        \"\"\"\n        self.__node_list = nodelist\n        self.__variable_name = variable_name\n\n    def render(self, context):\n        \"\"\"\n        Render the node list to the variable name.\n\n        :param context: Current context.\n        :return: Empty string\n        :rtype: str\n        \"\"\"\n        output = self.__node_list.render(context)\n        context[self.__variable_name] = mark_safe(output.strip())\n        return ''\n", "path": "zds/utils/templatetags/captureas.py"}]}