Item12060: INCLUDE macros "warn" attribute does not accept dollar-escapes
Current State: Closed
Released In: 2.0.0
Target Release: major
When using the INCLUDE
macro it is impossible to use any ICON macro like %X% in the warn attribute.
The expanded Macro contains double quotes that immediately end the warn attribute value and thus you only get: <img src=
Escaping it with $percntX$percnt does not work and will produce: $percntX$percnt
The only way around currently is to manually stuff the IMG tag into the "warn" attribute.
If it would understand $percntX$percnt, I guess it would work.
- 29 Aug 2012
Foswiki 1.2 is changing to generate single quotes in all html. (where practical).
Tested here on http://trunk.foswiki.org/Tasks/Item12060
by changing the =%X% and other macros to single quotes.
- 02 Jun 2014
Your suggested solution is the way to go. INCLUDE
will be changed to call Foswiki::expandStandardEscapes() on the warn= string.
- 03 Jun 2014
I have reviewed the code changes and deem this ready for release, as discussed at ReleaseMeeting01x02
- 17 Jun 2014