Commits

Greg Von Kuster  committed 6e291fa

Convert markupsafe object to unicode before rendering in the tool shed.

  • Participants
  • Parent commits 535d8ed

Comments (0)

Files changed (1)

File lib/tool_shed/util/shed_util_common.py

             text = unicodify( text )
         except UnicodeDecodeError, e:
             return "Error decoding string: %s" % str( e )
-        text = markupsafe.escape( text )
+        text = unicode( markupsafe.escape( text ) )
         text = text.replace( '\n', '<br/>' )
         text = text.replace( '    ', '&nbsp;&nbsp;&nbsp;&nbsp;' )
         text = text.replace( ' ', '&nbsp;' )