10 lines
304 B
Ruby
10 lines
304 B
Ruby
# frozen_string_literal: true
|
|
|
|
# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later
|
|
module Format
|
|
module HTML
|
|
def self.has_only_empty_tags(html_str)
|
|
return true if html_str && html_str.gsub(/<[^>]*>/ui, '').gsub(' ', '').strip == ''
|
|
end
|
|
end
|
|
end
|