Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error Message displaying <br> tags


Guest

Recommended Posts

Posted

when testing checkout, on credit card error messages:

(from /includes/languages/english.php) TEXT_CCVAL_ERROR_INVALID_DATE, TEXT_CCVAL_ERROR_INVALID_NUMBER, and TEXT_CCVAL_ERROR_UNKNOWN_CARD,

the <br> in the defined text is displaying as <br> instead of creating a line break. These text strings are being used in a sprintf function. Any suggestions, ideas for a fix?

Thanks

Posted

Thanks, but the n did not work either -- it was displayed just like the <br> tag. Seems like its being treated like a literal. Tried using " instead of ' around the define string but that didn't help either. I can also see that the <b> tags are properly displayed as bold in TEXT_DISPLAY_NUMBER_OF_PRODUCTS for example. And they use sprintf and are not escaped in anyway. Still stymied.

Archived

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

×
×
  • Create New...