mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:08:32 +08:00
DEV: Remove xlink hrefs (#15059)
This commit is contained in:
@ -406,9 +406,6 @@ class UploadCreator
|
||||
if use_el.attr('href')
|
||||
use_el.remove_attribute('href') unless use_el.attr('href').starts_with?('#')
|
||||
end
|
||||
if use_el.attr('xlink:href')
|
||||
use_el.remove_attribute('xlink:href') unless use_el.attr('xlink:href').starts_with?('#')
|
||||
end
|
||||
end
|
||||
File.write(@file.path, doc.to_s)
|
||||
@file.rewind
|
||||
|
Reference in New Issue
Block a user