My reading of the docs suggests that 

%== tag td => $var

won't XML escape $var. But I'm find that not to be the case.

% my $nbsp = ' ';
%== tag td => b($nbsp)
%== tag td => $nbsp
%== tag td => begin
<%== $nbsp %>
% end

generates:

<td>&amp;nbsp;</td>
<td>&amp;nbsp;</td>
<td>
&nbsp;
</td>

I find that exactly the same text is generated by:

% my $nbsp = '&nbsp;';
%= tag td => b($nbsp)
%= tag td => $nbsp
%= tag td => begin
<%== $nbsp %>
% end

So is this an error? If not, could someone point me to what I have 
misunderstood.

Is the (rather verbose) begin/end form of the tag the only way that I can 
embed '&nbsp;' in a table cell?

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to