Affects Version/s: None
Fix Version/s: None
I am playing with Table and had a Decorator set up to display three clickable images (read, edit and delete). Each of these ActionLinks was represented with a label that held an image.
viewLink.setAttribute("title", "View access control details");
This worked until I moved to Click 0.15, which uses HTMLStringBuffer to render the link in the Decorator.
Line 574 in ActionLink has 'buffer.appendEscaped(getLabel());'
This is escaping the brackets around the <img src=...> labels that I am assigning. Eg I get <img src=...
Maybe a solution is to set a boolean on the ActionLink/Control to indicate whether to allow HTML in the label?
And in ActionLink (and elsewhere in toString methods in Control subclasse?)
if (shouldEscapeHTML) buffer.appendEscaped(getLabel())