no carriage return
4 posts
• Page 1 of 1
no carriage return
hi
is there a bug?
no carriage return appears in the news (both <br> and </p>),
but it does in the article.
you can have à look here : http://donbosco.tennis.free.fr/joomla
thanks for help
regards,
tim
is there a bug?
no carriage return appears in the news (both <br> and </p>),
but it does in the article.
you can have à look here : http://donbosco.tennis.free.fr/joomla
thanks for help
regards,
tim
- TimVG
- Fresh Boarder

- Posts: 5
- Joined: Fri Feb 06, 2009 10:18 am
Re: no carriage return
Hi,
it's not a bug. In helper.php you will see (line 260)
It deletes all html tags in order to avoid any mess up when shortening the text, but you can delete that line at your own risk.
Best Regards!
it's not a bug. In helper.php you will see (line 260)
- Code: Select all
$fn_text = trim( strip_tags( $fn_text ) );
It deletes all html tags in order to avoid any mess up when shortening the text, but you can delete that line at your own risk.
Best Regards!
-

chus - Administrator

- Posts: 448
- Joined: Thu Sep 13, 2007 2:21 am
- Location: Costa Rica
Re: no carriage return
"own risk"
... i understand why !
it was worst, too bad
doesn't mind, there won't have any returns...
tim
- TimVG
- Fresh Boarder

- Posts: 5
- Joined: Fri Feb 06, 2009 10:18 am
Re: no carriage return
This worked for me... I'm sure there's an easier way to do it, but I'm not exactly a coder...
Example:
http://wildpoets.com
..edited to clean it up a bit - seems like this version catches more of the returns...
- Code: Select all
$fn_text= str_replace("</p>","0x13",$fn_text);
$fn_text= str_replace("<br>","0x13",$fn_text);
$fn_text= str_replace("<br />","0x13",$fn_text);
$fn_text= str_replace("</div>","0x13",$fn_text);
$fn_text= str_replace("</li>","0x13",$fn_text);
$fn_text = trim( strip_tags( $fn_text ) );
$fn_text= str_replace("0x13","<br>",$fn_text);
Example:
http://wildpoets.com
..edited to clean it up a bit - seems like this version catches more of the returns...
- batmonkey
- Fresh Boarder

- Posts: 1
- Joined: Tue Nov 17, 2009 7:46 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest