why html tags are not stored in database while importing csv in sugarcrm Please help me, i am using sugar version 6.5.16 . While importing CSV data with html tag ,data is not storing in database.
Asked
Active
Viewed 218 times
0
-
You didn't give us enough information, so here.. http://www.sugaruk.co.uk/blog/sugarcrm-how-import-data – MrJustin Nov 21 '13 at 06:01
-
give some more information – Anshul Parashar Nov 21 '13 at 06:18
1 Answers
0
SugarCRM doesn't allow importing of HTML into its database, as it could cause a XSS (Cross Site Scripting vulnerability). If you need to insert a newline, just place a \n inside the CSV file. NOTE most fields in SugarCRM don't support multi-line.

Noam Rathaus
- 5,405
- 2
- 28
- 37
-
i tried it but its not working , if i am writing like <br/ > its converting into
and its getting saved. But i want to give
directly in CSV – user3016151 Nov 21 '13 at 06:28 -
Ok i got my answer , I removed strip_tag from importer.php and its working now . Thanks – user3016151 Nov 21 '13 at 09:04
-
I suggest to not remove strip_tag, it would allow someone to inject HTML into your SugarCRM database, which is NOT recommended, it could lead to a compromise of your server – Noam Rathaus Nov 21 '13 at 10:28