Remove overescaping of alttext (Alttext already escaped by the backend)
Patch by jadelennox.
diffs (12 lines):
diff -r df81a3e83008 -r a4ba03d4fc21 bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2 Sun May 10 17:47:00 2009 +0000
+++ b/bin/upgrading/s2layers/core2.s2 Sun May 10 18:20:47 2009 +0000
@@ -2473,7 +2473,7 @@ function Image::as_string(string alttext
function Image::as_string(string alttext) [fixed] : string
"You most likely want to use Image::print instead. Prints HTML for the image
with a given alttext. Using meaningful alttext is strongly recommended to
improve the accessibility of your layout. Overriding this function is NOT
RECOMMENDED. Overriding this function could prevent sitewide improvements to
styles, accessibility, or other functionality from operating in your layout."
{
- return "<img src=\"$.url\" title=\"\" alt=\"" + ehtml($alttext) + "\"" +
+ return "<img src=\"$.url\" title=\"\" alt=\"" + $alttext + "\"" +
htmlattr("height", $.height) +
htmlattr("width", $.width) + " />";
}
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog