Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 748eeb2

Browse files
committed
Escape project.name and project.description
1 parent 468da4e commit 748eeb2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Projects <span class="caret"></span></a>
1616
<ul class="dropdown-menu">
1717
{% for project in site.data.projects %}
18-
<li><a href="{{ project.url }}">{{ project.name }}</a></li>
18+
<li><a href="{{ project.url }}">{{ project.name | escape }}</a></li>
1919
{% endfor %}
2020
</ul>
2121
</li>

index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Mac OS Forge hosted [open source](https://opensource.org/) projects closely rela
1010
{% for project in site.data.projects %}
1111
<a href="{{ project.url }}">
1212
<div class="col-md-4 col-sm-6">
13-
<h4>{{ project.name }}</h4>
14-
<p>{{ project.description }}</p>
13+
<h4>{{ project.name | escape }}</h4>
14+
<p>{{ project.description | escape }}</p>
1515
</div>
1616
</a>
1717
{% endfor %}

0 commit comments

Comments
 (0)