twigfiddle icon indicating copy to clipboard operation
twigfiddle copied to clipboard

Support displaying results as HTML

Open ninsuo opened this issue 10 years ago • 3 comments
trafficstars

Can be useful to add a "Show HTML result" button to interpret HTML results instead of displaying text. See: http://twigfiddle.com/e88llr

Should wrap the feature inside an iframe endpointed elsewhere than on twigfiddle.com to secure against xss using cross origin request policies.

ninsuo avatar Jan 21 '15 12:01 ninsuo

:+1: The iframe is a good idea. You can use a subdomain for the XSS issue.

GromNaN avatar Jan 21 '15 12:01 GromNaN

@GromNaN a subdomain is allowed to mess with the top-level domain cookies

stof avatar Aug 12 '15 17:08 stof

This tool supports HTML rendering https://fiddle.nette.org/twig/

sylfabre avatar Feb 19 '22 15:02 sylfabre