Using HTML and Tables in Review Description
I'm trying to figure out why I get extra <br />'s when I post a table.
Here's a simple test. I post this:
Now, I realize that I'm putting line breaks in when I place this text into the textfield when posting, however in testing, if I place every tag back to back, I get to the end of the textfield and it wraps. That wrap is interpreted as a line break and it screws up the html rendering my attempt to display my table useless. Further, to make my job easier, I use an HTML editor to build the table. Then I copy and past the HTML into the textfield when posting a product. I have HTML enabled but it seems that Reviewpost is not taking what I post in the textfield literally as HTML, rather it modifies it.
Is there anything I can hack to stop this? I'd really like to use tables and HTML as I specified, not modified.
This is because the html your using you have used breaks on your formatting. If your using html make sure it is all one line with no breaks otherwise they will be converted
Yes, I realize that I'm adding breaks. I've tried it without breaks. You realize how cumbersome that is. Not being able to format the html code is really a mess. Especially large tables filled with data.
What I'd really like is to be able to read the html code. Is there any way to let the code as is? I guess that's my real question.
There is no way to not do it sorry in our default code. Remember we need to run the convert bbcode and convert returns etc and all that stuff against the reviews to show things correctly so alot more goes into that that just you typing in your html. The show html is a minor feature that most sites will never use since it is a high security risk to allow such things.
Ok, I hear what you are saying. Let me ask you this from a layman's prospective. The only location that I care about posting HTML is within the "Product description" when I'm uploading a new product. This is where I'd like to post a table of data. Is this field also processed by the bbcode and if so, does it need to be? I mean, you understand the code. I don't have any clue how things are tied together with the bbcode in the backend.
The reviews themselves, I can see HTML being a security risk because users are posting it, but the "Product description" is something I'm posting.
Thanks for your time. I'm trying to figure out what my limitations are.
Remember though in our programs although on your site maybe you are the only one who posts but on normal sites all users post.
Yes in the description we need to convert bbcode returns etc which is normal. See your adding all these returns or breaks which means yes we are gonna convert them
Therefore if you dont want this to happen then you need to hack your code and possibly remove the convert_bbcode and convert_returns functions from the $desc define lines.
Ok, thanks again Chuck.
|All times are GMT -5. The time now is 04:55 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0