Browse Source

Fix HTML entities being encoded as hashtag links…

closed-social-glitch-2
Thibaut Girka 5 years ago
parent
commit
86d4461948
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/formatter.rb

+ 1
- 1
app/lib/formatter.rb View File

@ -314,7 +314,7 @@ class Formatter
gaps = []
total_offset = 0
escaped = html.gsub(/<[^>]*>/) do |match|
escaped = html.gsub(/<[^>]*>|&#[0-9]+;/) do |match|
total_offset += match.length - 1
end_offset = Regexp.last_match.end(0)
gaps << [end_offset - total_offset, total_offset]

Loading…
Cancel
Save