Skip to content

Commit 330cc4f

Browse files
k0kubunjcs
andcommitted
Story: description_or_story_text should return plaintext
Co-authored-by: joshua stein <[email protected]>
1 parent fca941b commit 330cc4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/lobsters/app/models/story.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def description_or_story_text(chars = 0)
503503
s = s.to_s[0, chars].gsub(/ [^ ]*\z/, "")
504504
end
505505

506-
HtmlEncoder.encode(s.to_s)
506+
HtmlEncoder.decode(s.to_s)
507507
end
508508

509509
def domain_search_url

0 commit comments

Comments
 (0)