New version inserts tag in campaign text

  • Martin Boire
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago - 13 years 4 months ago #6138 by Martin Boire
New version inserts tag in campaign text was created by Martin Boire
I just installed the new version of jdonate and I discovered that in the donation page description each line has a <br /> tag added to the HTML code.

Seems to me that the text area is set to parse plain text and not HTML, but I don't see way the new version would have to go back in features rather than forward.

is there a fix for that? Maybe a new option somewhere?

Edit: I have eliminated any /n newlines in the HTML, but the <br> tags are still showing up in the page. That's a bit weird. Where is this coming from?
Last edit: 13 years 4 months ago by Martin Boire.

Please Log in or Create an account to join the conversation.

More
13 years 4 months ago #6189 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: New version inserts tag in campaign text
Hi

You can fix this issue by opening the file components/com_jdonation/helper.php, look at line 24 , change it from :
Code:
function getConfig($nl2br = true) {

to :
Code:
function getConfig($nl2br = false) {


The fix is applied to latest download package on server , so you can simply download latest version and update to your site .

Thanks,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt