Skip to content

Commit

Permalink
Story: description_or_story_text should return plaintext (lobsters#1329)
Browse files Browse the repository at this point in the history
PR lobsters#1320 changed this from HTMLEntities.new.decode to
HtmlEncoder.encode which does the opposite of what it used to do.

Should fix lobsters#1328
  • Loading branch information
jcs authored Sep 25, 2024
1 parent d8e7def commit f512ae4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/story.rb
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def description_or_story_text(chars = 0)
s = s.to_s[0, chars].gsub(/ [^ ]*\z/, "")
end

HtmlEncoder.encode(s.to_s)
HtmlEncoder.decode(s.to_s)
end

def domain_search_url
Expand Down

0 comments on commit f512ae4

Please sign in to comment.