formBuilder icon indicating copy to clipboard operation
formBuilder copied to clipboard

HTML Tags in Description/Label always rendered - even when using HTML entities

Open futureweb opened this issue 5 years ago • 4 comments

Description:

HTML Tags in Description/Label always rendered - even when using HTML entities.

Expected Behavior

Showing not rendered Source

Actual Behavior

Showing rendered Output

Steps to Reproduce

See: https://codepen.io/futureweb/pen/PoNzgOY

"label":"Link to <a href=\\"agb.pdf\\">AGBs</a>" and "label":"Another Link to &lt;a href=\\"agb.pdf\\"&gt;AGBs&lt;/a&gt;"

both resulting in rendered Output - so one can't modify it on Form edit ...

Screenshot - (optional)

grafik

futureweb avatar Aug 18 '20 15:08 futureweb

Is this still an issue? i've considered adding a minimal wysiwyg for the inputs that would handle this situation but would like to gauge interest first

kevinchappell avatar Aug 23 '20 00:08 kevinchappell

@kevinchappell - for us it's still a "big deal" - as often we have to link AGBs or GDPR Stuff within Forms - so either output HTML Code "as is" or with "minimal wysiwyg" would be OK (minimal wysiwyg would be really nice I guess), but rendered HTML Output as current, without any possibility to edit the rendered HTML Output, is the "worst case" ;-)

futureweb avatar Aug 23 '20 00:08 futureweb

ok thanks, thats good to know. the way i picture mini wysiwyg working is when you highlight text in the field an interactive tooltip appears above the field with buttons for basic formatting. To start, formats would be Bold, Italic, Underline and Link

kevinchappell avatar Aug 24 '20 16:08 kevinchappell

@kevinchappell - for me this would sound pretty fine! ;-) Would be nice if the "Mini-WYSIWYG Features" could be enabled/disabled within config - as we would only allow LINK and maybe BOLD ... As End-Users tend to "style too much" when they got the possibility to ... lol ;-)

futureweb avatar Aug 25 '20 09:08 futureweb