mirror of
https://github.com/docusealco/docuseal
synced 2026-11-08 07:42:32 -05:00
html escape font signature
This commit is contained in:
1 parent
daba2505bc
commit
d7a6e80bb1
1 file changed
+2
@@ -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