Modify ↓
#3522 closed defect (fixed)
Results from cross-project search show escaped html tags
Reported by: | Kenny Bohle | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Component: | SearchAllPlugin |
Severity: | normal | Keywords: | escape characers html |
Cc: | Trac Release: | 0.11 |
Description
When running the search on all projects, every result which is generated by the plugin looks similar to this:
project1:<span class="closed">#17</span>: task: Some Task (closed: fixed)
The html <span> tags are still visible because they are escaped by Genshi to (from the html-sourcecode):
<dt><a href="/trac/project1/ticket/17" class="searchable">project1: <span class="closed">#17</span>: task: Some Task (closed: fixed)</a></dt>
This display can be fixed by removing the literal string conversion from the searchall.py file and istead using the a "tag" object as return value.
Find attached a diff to show the required modifications.
Attachments (2)
Change History (7)
Changed 16 years ago by
Attachment: | searchall.py.diff added |
---|
comment:1 Changed 16 years ago by
Just wanted to add a note that I applied this patch and it worked for me as well.
Russ
Changed 16 years ago by
Attachment: | searchall.py.2.diff added |
---|
Alternative patch which works with Trac 0.10
comment:2 Changed 16 years ago by
Owner: | changed from Álvaro Iradier to anonymous |
---|---|
Status: | new → assigned |
comment:4 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Patch for searchall.py