html escape font signature

This commit is contained in:
Pete Matsyburka
2025-11-11 11:11:07 +02:00
parent daba2505bc
commit d7a6e80bb1
+2
View File
@@ -20,6 +20,8 @@ module Submitters
def call(text, font: nil)
font = FONT_ALIASES[font] || font
text = ERB::Util.html_escape(text)
text_image = Vips::Image.text(text, font:, fontfile: FONTS[font],
width: WIDTH, height: HEIGHT, wrap: :none)