Better html displaying
This commit is contained in:
parent
c442f4fcd2
commit
d78c98bd00
3 changed files with 8 additions and 4 deletions
|
@ -28,11 +28,11 @@ narrow_page: true
|
|||
<div class="column text_data">
|
||||
<div>
|
||||
<i class="quote">
|
||||
"<%= member[:quote] %>"
|
||||
"<%= to_HTML(member[:quote]) %>"
|
||||
</i>
|
||||
</div>
|
||||
<div class="description_text" style="margin-top: 0.5em">
|
||||
<%= member[:description] %>
|
||||
<%= to_HTML(member[:description]) %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns links">
|
||||
|
|
|
@ -5,7 +5,7 @@ data:
|
|||
nickname: FlashYoshi
|
||||
photo: https://zeus.ugent.be/zeuswpi/0U6neVQP.jpg
|
||||
quote: Ansible is af!
|
||||
description: |
|
||||
description: |-
|
||||
Puns, weeb, Sigasi, klimt, taart.
|
||||
Houdt écht van Java.
|
||||
Gebruikt tabs én spaces.
|
||||
|
@ -20,7 +20,7 @@ data:
|
|||
- name: Felix Van der Jeugt
|
||||
nickname: noctua
|
||||
photo: https://zeus.ugent.be/zeuswpi/9_L03Pm8.jpg
|
||||
quote: |
|
||||
quote: |-
|
||||
<noctua> dwergen
|
||||
<noctua> dwergen
|
||||
<noctua> dwergen
|
||||
|
|
|
@ -32,4 +32,8 @@ module AboutHelper
|
|||
def to_full_year(year)
|
||||
(year.to_i < 90) ? "20#{year}" : "19#{year}"
|
||||
end
|
||||
|
||||
def to_HTML(text)
|
||||
text.gsub("<", "<").gsub(">", ">").gsub("\n", "<br>");
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue