html escape font signature
This commit is contained in:
@@ -20,6 +20,8 @@ module Submitters
|
|||||||
def call(text, font: nil)
|
def call(text, font: nil)
|
||||||
font = FONT_ALIASES[font] || font
|
font = FONT_ALIASES[font] || font
|
||||||
|
|
||||||
|
text = ERB::Util.html_escape(text)
|
||||||
|
|
||||||
text_image = Vips::Image.text(text, font:, fontfile: FONTS[font],
|
text_image = Vips::Image.text(text, font:, fontfile: FONTS[font],
|
||||||
width: WIDTH, height: HEIGHT, wrap: :none)
|
width: WIDTH, height: HEIGHT, wrap: :none)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user