Create code posts

This commit is contained in:
2024-03-04 21:34:12 +11:00
parent 4277bde352
commit 56edde6ab5
13 changed files with 155 additions and 53 deletions

View File

@@ -12,9 +12,8 @@ module Main
class Decorator < Main::Decorators::Posts::Decorator
def raw_content
Sanitize.fragment(content,
elements: ["img", "p"],
attributes: {"img" => ["alt", "src", "title"]}
)
elements: ["img", "p"],
attributes: {"img" => ["alt", "src", "title"]})
end
end
end