mojolicious / mojo

:sparkles: Mojolicious - Perl real-time web framework
https://mojolicious.org
Artistic License 2.0
2.66k stars 577 forks source link

Wrong explanation in sample what escapes XML and what is not (<%= vs <%==) #2095

Closed nugged closed 1 year ago

nugged commented 1 year ago

https://github.com/mojolicious/mojo/blob/058216dd0aafa0d5888edf5e53412f043487a914/lib/Mojo/Template.pm#L330-L331

is opposite to

https://github.com/mojolicious/mojo/blob/058216dd0aafa0d5888edf5e53412f043487a914/lib/Mojo/Template.pm#L343-L344

jberger commented 1 year ago

If you read the line above it, you'll see why: https://github.com/mojolicious/mojo/blob/058216dd0aafa0d5888edf5e53412f043487a914/lib/Mojo/Template.pm#L340-L344