switch to ragel dtext parser

This commit is contained in:
r888888888
2016-03-17 15:08:10 -07:00
parent 71de134d03
commit c037d7a7cc
3 changed files with 4 additions and 4 deletions

View File

@@ -48,11 +48,11 @@ module ApplicationHelper
end
def format_text(text, options = {})
DText.parse(text)
DTextRagel.parse(text)
end
def strip_dtext(text)
DText.strip(text)
DTextRagel.parse_strip(text)
end
def error_messages_for(instance_name)

View File

@@ -4,7 +4,7 @@ module PostAppealsHelper
html << '<ul>'
post.appeals.each do |appeal|
html << '<li>' + DText.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
html << '<li>' + DTextRagel.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
end
html << '</ul>'

View File

@@ -5,7 +5,7 @@ module PostFlagsHelper
post.flags.each do |flag|
html << '<li>'
html << DText.parse_inline(flag.reason).html_safe
html << DTextRagel.parse_inline(flag.reason).html_safe
if CurrentUser.is_moderator?
html << ' - ' + link_to_user(flag.creator)