diff options
author | Sebastian Pech <windows@spech.de> | 2019-09-22 13:45:38 +0300 |
---|---|---|
committer | Sebastian Pech <windows@spech.de> | 2019-09-22 13:45:38 +0300 |
commit | fa0192b06b9864887cb6568ebdb381455229eaed (patch) | |
tree | a30912423c7e266b091009d3e060d60280ed17ca | |
parent | 36683bcf32b966e0cf76be81571e6cfcbf93e7eb (diff) |
Added safeHTML to title for HTML br
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 02df301..bf45276 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -26,7 +26,7 @@ <h5 class="card-title groupTitle">{{ .group }}</h5> <ul class="list-group list-group-flush groupListList"> {{ range .items }} - <li class="list-group-item groupListListItem"><a href="{{ .url }}" target="_self" class="groupLink"><i class="{{ .icon }}"></i> <span class="groupText">{{ .title }}</span></a></li> + <li class="list-group-item groupListListItem"><a href="{{ .url }}" target="_self" class="groupLink"><i class="{{ .icon }}"></i> <span class="groupText">{{ .title | safeHTML }}</span></a></li> {{ end }} </ul> </div> @@ -40,7 +40,7 @@ <div id="iconListEntry" class="card"> <div class="card-body cursorPointer" onclick="location.href = '{{ .url }}'"> <p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink"><i class="fa-5x {{ .icon }}"></i></a></p> - <p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink">{{ .title }}</a></p> + <p class="card-text"><a href="{{ .url }}" target="_self" class="iconLink">{{ .title | safeHTML }}</a></p> </div> </div> {{ end }} |