digilee Posted September 28, 2007 Share Posted September 28, 2007 Just lately, each time I add/ make changes to product descriptions, I cannot get a line break to display correctly. Instead of a < br / > (i've left gaps intentionally here so it displays) I get _br /_ which obviously doesn't produce a proper line break. Anyone else come across this and/ or know of a solution? thanks in advance. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2007 Share Posted September 28, 2007 Just lately, each time I add/ make changes to product descriptions, I cannot get a line break to display correctly. Instead of a < br / > (i've left gaps intentionally here so it displays) I get _br /_ which obviously doesn't produce a proper line break. Anyone else come across this and/ or know of a solution? thanks in advance. I just use <br> for a new line and <br><br> for a blank line. Link to comment Share on other sites More sharing options...
digilee Posted September 28, 2007 Author Share Posted September 28, 2007 That doesn't work either. Basically the brackets < and > and being rendered as _ This is very annoying as it means I cannot add any new products. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2007 Share Posted September 28, 2007 That doesn't work either.Basically the brackets < and > and being rendered as _ This is very annoying as it means I cannot add any new products. To me, that is odd. Do your old products look ok? If so, have you tried copy and paste? Otherwise, you may want to install a wysiwyg editor. Link to comment Share on other sites More sharing options...
digilee Posted September 28, 2007 Author Share Posted September 28, 2007 Old products are fine until I go to change them then the same problem occurs. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design Link to comment Share on other sites More sharing options...
digilee Posted September 28, 2007 Author Share Posted September 28, 2007 Had an update from the host. he reckons that it's something to do with the editor that's being used and suggests that I reinstall it. Apart from a few minor code changes nothing has been altered in the admin section. Is it best to just overwrite (after back up) all of the admin files or is is worth just uploading few files first to see if that does the trick? SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design Link to comment Share on other sites More sharing options...
Guest Posted September 28, 2007 Share Posted September 28, 2007 Had an update from the host. he reckons that it's something to do with the editor that's being used and suggests that I reinstall it. Apart from a few minor code changes nothing has been altered in the admin section. Is it best to just overwrite (after back up) all of the admin files or is is worth just uploading few files first to see if that does the trick? I don't know what is used for the editing, so I would do the former. What OSC version are you using? Link to comment Share on other sites More sharing options...
digilee Posted September 28, 2007 Author Share Posted September 28, 2007 Update: I seemed to have sorted it now. I simply replaced the functions folder (and its contents) at admin > includes > functions I'm not sure what did the trick but it's probably the file html_output.php Entered new product and < br / >'s work fine. SolarFrenzy Solar powered gadgets at down to earth prices. CheekyNaughty Promoting British Design Link to comment Share on other sites More sharing options...
Nullachtfuffzehn Posted September 28, 2007 Share Posted September 28, 2007 The culprit is the function tep_sanitize_string() in includes/functions/general.php. It is called from the the database function tep_db_prepare_input(). If you take out the function call there, anything would smooth again. Link to comment Share on other sites More sharing options...
Guest Posted September 29, 2007 Share Posted September 29, 2007 The culprit is the function tep_sanitize_string() in includes/functions/general.php. It is called from the the database function tep_db_prepare_input(). If you take out the function call there, anything would smooth again. Well done Manfred, and thaks for letting us know what the problem was. I am glad I didn't do that contrib. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.