mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 02:41:41 +00:00
no aplicar limpieza de html por ahora
This commit is contained in:
parent
2c267ae116
commit
fe5881069c
3 changed files with 3 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
|||
%tr{ id: attribute }
|
||||
%th= post_label_t(attribute, post: post)
|
||||
%td= sanitize_markdown metadata.value, tags: tags
|
||||
%td= metadata.value
|
||||
|
|
|
@ -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: ''
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue