diff --git a/app/models/metadata_template.rb b/app/models/metadata_template.rb index 7149bcd..a85b84a 100644 --- a/app/models/metadata_template.rb +++ b/app/models/metadata_template.rb @@ -129,7 +129,7 @@ MetadataTemplate = Struct.new(:site, :document, :name, :label, :type, end def allowed_attributes - @allowed_attributes ||= %w[style src alt controls data-align].freeze + @allowed_attributes ||= %w[style href src alt controls data-align].freeze end def allowed_tags diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index db4210c..1e6fd41 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -70,4 +70,4 @@ %input.form-control{ type: 'url', data: { prop: 'link-href' } }/ .editor-content.form-control.h-auto{ contenteditable: 'true' } - = metadata.value + = metadata.value.html_safe