no aplicar limpieza de html por ahora

This commit is contained in:
f 2019-11-22 13:41:59 -03:00
parent 2c267ae116
commit fe5881069c
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
3 changed files with 3 additions and 4 deletions

View file

@ -1,3 +1,3 @@
%tr{ id: attribute }
%th= post_label_t(attribute, post: post)
%td= sanitize_markdown metadata.value, tags: tags
%td= metadata.value

View file

@ -2,6 +2,5 @@
= label_tag "post_#{attribute}", post_label_t(attribute, post: post)
= render 'posts/attribute_feedback',
post: post, attribute: attribute, metadata: metadata
= rich_text_area_tag "post[#{attribute}]",
sanitize_markdown(metadata.value, tags: all_html_tags),
= rich_text_area_tag "post[#{attribute}]", metadata.value,
**field_options(attribute, metadata), class: ''

View file

@ -33,4 +33,4 @@
- next if @post.send(attr).front_matter?
%section{ id: attr }
= sanitize_markdown @post.send(attr).value, tags: all_html_tags
= raw @post.send(attr).value