From fe5881069cb212b9045c5ddcf89d8fcea08cbf53 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 22 Nov 2019 13:41:59 -0300 Subject: [PATCH] no aplicar limpieza de html por ahora --- app/views/posts/attribute_ro/_content.haml | 2 +- app/views/posts/attributes/_content.haml | 3 +-- app/views/posts/show.haml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/views/posts/attribute_ro/_content.haml b/app/views/posts/attribute_ro/_content.haml index 27e599d..31dd8f0 100644 --- a/app/views/posts/attribute_ro/_content.haml +++ b/app/views/posts/attribute_ro/_content.haml @@ -1,3 +1,3 @@ %tr{ id: attribute } %th= post_label_t(attribute, post: post) - %td= sanitize_markdown metadata.value, tags: tags + %td= metadata.value diff --git a/app/views/posts/attributes/_content.haml b/app/views/posts/attributes/_content.haml index 3b9e1e9..f5c60f2 100644 --- a/app/views/posts/attributes/_content.haml +++ b/app/views/posts/attributes/_content.haml @@ -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: '' diff --git a/app/views/posts/show.haml b/app/views/posts/show.haml index 86c4822..dc8a5de 100644 --- a/app/views/posts/show.haml +++ b/app/views/posts/show.haml @@ -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