mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 03:00:12 +01:00
Kill HTML tags in todo notes
We still want to preserve quotes for textile, but tags of any sort shouldn't be able to mess up the output. Fixes #765
This commit is contained in:
parent
e4394761c5
commit
8de74939ea
1 changed files with 4 additions and 2 deletions
|
|
@ -202,9 +202,11 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def format_note(note)
|
||||
note.gsub!(/</, '<') # eliminate tags
|
||||
note.gsub!(/>/, '>')
|
||||
note = markdown(note)
|
||||
note = auto_link_message(note)
|
||||
note = auto_link(note)
|
||||
note = markdown(note)
|
||||
note = sanitize(note)
|
||||
return note
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue