Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Displayed articles are "code cleaned"
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Displayed articles are "code cleaned"

Displayed articles are "code cleaned" 11 years, 1 month ago #8340

  • visionforge
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
Hi Guys,

the accordion module is basically working fine on my installation.

The only problem I have is, that all articles, are cleaned up from tags like
<p>
or
<br />
.
This leads to a different textformatting what is not wanted.

I set "Description Maxlength" to 0 to have the full contents shown.
Links set in the articles are shown in the accordion. They work!

What can I do to prevent the articles to be cleaned?

EDIT: Tables are cleaned as well! Completely!

Kind regards,

Chris
Last Edit: 11 years, 1 month ago by visionforge.
The topic has been locked.

Re: Displayed articles are "code cleaned" 11 years, 1 month ago #8394

  • visionforge
  • OFFLINE
  • Single Product
  • Fresh Boarder
  • Posts: 3
  • Karma: 0
OK, found the code.
I changed it in mod_sj_k2_accordion/core/helper_base.php in line 71.

Replaced this:
public function _cleanText($text){
			$text = str_replace('<p>', ' ', $text);
			$text = str_replace('</p>', ' ', $text);
			$text = strip_tags($text, '<a><em><strong>');
			$text = trim($text);
			return $text;
		}


with that:

public function _cleanText($text){
		/*
			$text = str_replace('<p>', ' ', $text);
			$text = str_replace('</p>', ' ', $text);
		*/
			$text = strip_tags($text, '<p><a><em><strong><br><table><tbody><td><tr>');
			$text = trim($text);
			return $text;
		}


Tanks anyway.
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.19 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes