added notes
This commit is contained in:
9
app/presenters/note_presenter.rb
Normal file
9
app/presenters/note_presenter.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class NotePresenter
|
||||
def initialize(note)
|
||||
@note = note
|
||||
end
|
||||
|
||||
def formatted_body
|
||||
note.body.gsub(/<tn>(.+?)<\/tn>/m, '<br><p class="tn">\1</p>').gsub(/\n/, '<br>')
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user