fix escaped strings in bio

This commit is contained in:
Torsten 2023-09-18 13:11:42 +03:00
parent e55936c8c3
commit a28ca85a37

View File

@ -25,7 +25,7 @@
options el: '.editor'
def initialize
@tab = 1
@markdown = "#{object.send(field).to_s.html_safe}"
@markdown = "#{CGI::escapeHTML(sanitize object.send(field).to_s)}"
end
def compiledMarkdown
marked.parse(@markdown)