Skip Menu |

This queue is for tickets about the Template-Alloy CPAN distribution.

Report information
The Basics
Id: 50686
Status: resolved
Priority: 0/
Queue: Template-Alloy

Owner: Nobody in particular
Requestors: ashley.pond.v [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: TT2 emulation FILTER html should not convert ' to '
Date: Tue, 20 Oct 2009 12:17:10 -0700
To: bug-Template-Alloy [...]
From: Ashley Pond V <ashley.pond.v [...]>
Download (untitled) / with headers
text/plain 716b
Template::Alloy 1.013 In TT2 the html filter does not touch apostrophes. This is the correct behavior and &apos; is not even a real entity name though it is almost universally supported by browsers. The exception being, of course, the albatross known as IE6. This is what I've hacked to get the right behavior in my own Alloy code: Template::Alloy->define_vmethod( 'text', html => sub { HTML::Entities::encode_entities(+shift, '<>&"'); }, ); I'm not sure where the right place to fix it in the real code base is. :( Alloy is *teh awsum*. Thank you for your work on it! -Ashley
Download (untitled) / with headers
text/plain 200b
While I don't like TT2's behavior, I agree with making Alloy match as much as possible. I've added the xml filter which does what the html filter used to and made the html filter follow TT2 behavior.
Marking resolved

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to