Proper html sanitation for static pages

This commit is contained in:
echarp 2017-05-07 22:06:45 +02:00
parent 66ce115fc3
commit ec60e8853b
4 changed files with 4 additions and 4 deletions

View File

@ -1,2 +1,2 @@
:markdown :markdown
#{t '.content'} #{sanitize t '.content'}

View File

@ -1,6 +1,6 @@
%h2 %h2
%em.fa.fa-filter %em.fa.fa-filter
= title t('.title') = title t '.title'
:markdown :markdown
#{t '.helper'} #{t '.helper'}

View File

@ -1,5 +1,5 @@
:markdown :markdown
#{t '.content'} #{sanitize t '.content'}
%a(href="http://validator.w3.org/unicorn/check?ucn_uri=#{root_url}" %a(href="http://validator.w3.org/unicorn/check?ucn_uri=#{root_url}"
style="text-decoration:none;") style="text-decoration:none;")

View File

@ -1,2 +1,2 @@
:markdown :markdown
#{t '.content'} #{sanitize t '.content'}