Modify

Opened 11 years ago

Closed 5 years ago

#1323 closed defect (wontfix)

Unnecessary HTML tags are showed in full description

Reported by: Akihiro KAYAMA Owned by: Noah Kantrowitz
Priority: normal Component: PaginateTicketsPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

When check "Show full description under each result" option and update query, Unnecessary HTML tags like <p>...</p> are showed in each full descriptions.

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Akihiro KAYAMA

String in HDF dataset are already escaped, and HDFWrapper.setitem do escape, so getting string from HDF and store it back causes double escaping.

Following patch will solve this problem.

--- paginateticketsplugin/0.10/paginate/web_ui.py.orig	2006-09-04 02:54:38.000000000 +0900
+++ paginateticketsplugin/0.10/paginate/web_ui.py	2007-03-14 16:46:58.000000000 +0900
@@ -61,7 +62,7 @@
     
             # Reinsert the smaller results set
             req.hdf.removeTree('query.results')        
-            req.hdf['query.results'] = results[start:end]
+            req.hdf.set_unescaped('query.results', results[start:end])
             
             # NOTE: On second thought, the column headers should go back to page 1 anyway
             #def walk_hdf2(node):

comment:2 Changed 5 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

This plugin is deprecated with Trac 0.11. The functionality was integrated to the Trac core in t:#216.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Noah Kantrowitz.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.