HTML filter the variable, not the entire language string.
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
[% IF ctx.invalid_email %]
<div id='account-update-email-error'>
- [% l('The email address "<b>[_1]</b>" is invalid. Please try a different email address.', ctx.invalid_email) | html %]
+ [% bad_email = ctx.invalid_email | html %]
+ [% l('The email address "<b>[_1]</b>" is invalid. Please try a different email address.', bad_email) %]
</div>
[% END %]
[% IF ctx.invalid_username %]
<div id='account-update-email-error'> <!-- borrow css from update-email page -->
- [% l('"<b>[_1]</b>" is not a valid username. Usernames cannot have any spaces. Please try a different username.', ctx.invalid_username) | html %]
+ [% bad_user = ctx.invalid_username | html %]
+ [% l('"<b>[_1]</b>" is not a valid username. Usernames cannot have any spaces. Please try a different username.', bad_user) %]
</div>
[% ELSIF ctx.username_exists %]