CSV import - hyperlinks stripped

silurius - March 14, 2008 - 19:18
Project:Table Manager
Version:5.x-1.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

It appears that while importing csv data with cells containing hyperlinks, Table Manager strips out the links. For example:

Imported CSV Code

Fruit,Number in bowl
"<a href=""http://en.wikipedia.org/watermelon"">Watermelon</a>",1
"<a href=""http://en.wikipedia.org/wiki/orange%20(fruit)"">Orange</a>",2
"<a href=""http://en.wikipedia.org/grape"">Grape</a>",27

Resultant table code

<table bgcolor="white" class="tablemanager">

<thead><tr><th type="1">Fruit</th><th type="1">Number in bowl
</th><th colspan="2">Operations</th> </tr></thead>
<tbody>
<tr class="odd"><td><a>Watermelon</a></td><td>1</td><td><a href="/tablemanager/edit/1317">edit</a></td><td><a href="/tablemanager/delete/1317">delete</a></td> </tr>
<tr class="even"><td><a>Orange</a></td><td>2</td><td><a href="/tablemanager/edit/1318">edit</a></td><td><a href="/tablemanager/delete/1318">delete</a></td> </tr>

<tr class="odd"><td><a>Grape</a></td><td>27</td><td><a href="/tablemanager/edit/1319">edit</a></td><td><a href="/tablemanager/delete/1319">delete</a></td> </tr>
</tbody></table>

It's possible to edit the individual cells to correct the problem, but I wonder if there is a better workaround or a possible fix.

#1

pobster - March 14, 2008 - 19:40
Status:active» by design

I take it you didn't notice the 'input format' below the CSV box then? ;o) You've probably just not enabled the 'a' tag in filtered html? Just imprt using full html if you don't want to add it.

Pobster

#2

silurius - March 14, 2008 - 21:50

Gah!

Actually, I ignored the input format because I misremembered having added <a> to the allowed tags and should have checked that first, obviously.

#3

pobster - March 14, 2008 - 22:19
Status:by design» closed

;o) These things happen! Glad it's sorted,

Pobster

 
 

Drupal is a registered trademark of Dries Buytaert.