Merge remote-tracking branch 'parent/main' into upstream-20240906
This commit is contained in:
commit
218cb37fe3
176 changed files with 750 additions and 603 deletions
|
@ -100,7 +100,7 @@ class TranslateStatusService < BaseService
|
|||
end
|
||||
|
||||
def unwrap_emoji_shortcodes(html)
|
||||
fragment = Nokogiri::HTML.fragment(html)
|
||||
fragment = Nokogiri::HTML5.fragment(html)
|
||||
fragment.css('span[translate="no"]').each do |element|
|
||||
element.remove_attribute('translate')
|
||||
element.replace(element.children) if element.attributes.empty?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue