Jump to content

Archived

This topic is now archived and is closed to further replies.

digilee

_br /_ instead of < br >

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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?


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.


The Coopco Underwear Shop

 

If you live to be 100 years of age, that means you have lived for 36,525 days. Don't waste another, there aren't many left.

Share this post


Link to post
Share on other sites

×