バグ #1042 » 0001-description-to_show.patch
core/lib/retriever/mixin/message_mixin.rb | ||
---|---|---|
end
|
||
def to_show
|
||
@to_show ||= description.gsub(/&(gt|lt|quot|amp);/){|m| {'gt' => '>', 'lt' => '<', 'quot' => '"', 'amp' => '&'}[$1] }.freeze
|
||
if @prev_description != description
|
||
@prev_description = description
|
||
@to_show = description.gsub(/&(gt|lt|quot|amp);/){|m| {'gt' => '>', 'lt' => '<', 'quot' => '"', 'amp' => '&'}[$1] }.freeze
|
||
end
|
||
@to_show
|
||
end
|
||
def to_message
|