Edgewall Software
Modify

Opened 10 months ago

Last modified 7 months ago

#614 new defect

Markup doesn't work in attributes

Reported by: magnus.carlsson@… Owned by: cmlenz
Priority: major Milestone: 0.8
Component: Template processing Version: 0.7.2
Keywords: Cc: hodgestar

Description (last modified by rjollos)

I can use ${Markup(data)} to avoid escaping in most cases but when I try to use it in a attribute it is ignored:

<div title="${Markup(data)}">${Markup(data)}</div>

will produce something like this if data = "Text&nbsp;Text"

<div title="Text&amp;nbsp;Text">Text&nbsp;Text</div>

My main use case or this is to include &nbsp; in the tooltips.

Attachments (0)

Change History (5)

comment:1 Changed 10 months ago by rjollos

  • Description modified (diff)

comment:2 follow-up: Changed 10 months ago by rjollos

  • Cc hodgestar added

Did you test with Genshi 0.7.1?

comment:3 in reply to: ↑ 2 Changed 10 months ago by anonymous

Replying to rjollos:

Did you test with Genshi 0.7.1?

Sorry, yes I am running 0.7.1 (I couldn't select it in the version drop down and then I forgot to add it in the description.)

comment:4 Changed 10 months ago by jomae

  • Version changed from 0.7 to 0.7.1

Added version 0.7.1.

comment:5 Changed 7 months ago by hodgestar

  • Version changed from 0.7.1 to 0.7.2

Bump open 0.7.1 tickets to 0.7.2.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain cmlenz.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from cmlenz to the specified user.
The owner will be changed from cmlenz to anonymous. Next status will be 'assigned'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.