fix escaped strings in bio
This commit is contained in:
parent
e55936c8c3
commit
a28ca85a37
@ -25,7 +25,7 @@
|
|||||||
options el: '.editor'
|
options el: '.editor'
|
||||||
def initialize
|
def initialize
|
||||||
@tab = 1
|
@tab = 1
|
||||||
@markdown = "#{object.send(field).to_s.html_safe}"
|
@markdown = "#{CGI::escapeHTML(sanitize object.send(field).to_s)}"
|
||||||
end
|
end
|
||||||
def compiledMarkdown
|
def compiledMarkdown
|
||||||
marked.parse(@markdown)
|
marked.parse(@markdown)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user