Comments (4)
So, the function was added when similar code was seen throughout the existing program and to allow similar changes as suggested above to be applied throughout rather than against one specific use or another. I can not speak to the original design of removing the various returns other than it apparently did cause problems for editing the file(s) and therefore was added at that time. I would say that generally speaking such a "return" probably should include the html <br />
or <br>
tag which could be applied using the php code nl2br($string) to insert the first of those two before the hard coded "return".
Whether I added the needs review statement or it existed previously, I would say that if I did so it was because it didn't cause me any problems as I use html tags in the content and therefore such "single paragraph" result isn't a problem, but what isn't a problem for me might be a problem for someone else, therefore recognition that perhaps some review would provide some alternate solutions applicable to desired situations. Certainly, one is able to make the changes they see fit once the software is downloaded. :)
As commented, it is something to consider; however, because not everyone uses Open Office as suggested, the issue may have to be addressed in some other way or remain a minor issue at least until other "desirable" code is suggested.
from easypopulate-4.0.
I see the dilemma here, and different use cases.
I think switch to html based product description is a good idea, not a fix, but a bypass for good reasons.
For now, I am going to leave only \t as the problematic char and to remove when export. As my test, keeping \r and \n in the product description won't break anything. However if I leave \t unfiltered, the export will be broken. To lazy to investigate why...
from easypopulate-4.0.
Understand the "too lazy to investigate" part. :)
As to using one method for export and possibly the same or another for import, have you worked out how those two different directions will act differently if at all?
In response to this I focused primarily on export and am glad you updated the original post. The quoted code only related to SBA and that made the situation confusing but above as provided the situation is clearer.
from easypopulate-4.0.
The "clear up" code is every where and confusing :) I feel in some of the case there is double "clear up" situation. I think at some point the code needs to be cleared.
I don't have time/resources to test both directions. I feel it is more risky to filter less "problematic words", but this is convenient when I don't want to use complex html editing.
However, to make my website looks pro, I guess I will eventually switch to html based product description.
from easypopulate-4.0.
Related Issues (20)
- Quantity Discounts, Discount Type: None HOT 5
- Replace $_SERVER variables in easypopulate_4.php HOT 2
- item name got emptied after import attributes using Attrib-Basic-EP-examples.csv HOT 5
- Error received before uploading and after HOT 3
- Import function gives incorrect special price dates on PHP 5.6+ HOT 4
- Up to date HOT 5
- dimensional weight shipping fields HOT 5
- Update request: admin/easypopulate_4_import.php HOT 3
- categorymeta import section notes/improvements HOT 1
- Categories delimeter HOT 13
- folder structure HOT 2
- Category Import don´t support Subcategories HOT 9
- Product Attribute import creates new options HOT 2
- Export Categories Tree HOT 3
- multi-lingual category import HOT 2
- manufacturers_info table not updated HOT 1
- Attribute Import with Multiple Language HOT 4
- Zero Lenght Category Name
- PHP < 4.3.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easypopulate-4.0.