Showing
2 changed files
with
2 additions
and
2 deletions
| ... | ... | @@ -323,7 +323,7 @@ module Kanjai |
| 323 | 323 | if !key.nil? and !value.nil? |
| 324 | 324 | work_value = value.dup |
| 325 | 325 | work_value.gsub!(/\r\n/, "#newline#") if !['code', 'pre'].include?(parent_node_name.to_s.downcase) |
| 326 | - new_text.gsub!(key, work_value) | |
| 326 | + new_text.gsub!(key, work_value.to_s.html_safe) | |
| 327 | 327 | end |
| 328 | 328 | end |
| 329 | 329 | end | ... | ... |