<em>@manasopa 347783 wrote:</em><blockquote>How to modify strip tag in introtext JA WALL?</blockquote>
Hi Manasopa,
Code defines strip tag in JA Wall locate in:
1. For Category view:
templatesja_wallhtmlcom_contentcategoryblog_item.php
Here is the code for strip tag:
// build intro content
// get some first paragraph in introtext, trip tags (keep a, strong, br, b...)
$introtext = $this->item->introtext;
// get first paragraph
$regex = '#<p[^>]*>(.*)</p>#i';
if (preg_match_all ($regex, $introtext, $matches)) {
$p = array();
$c = 0;
foreach ($matches[1] as $match) {
$t = trim(strip_tags ($match, '<a><b><strong><br>'));
if ($t) $p[] = $t;
$c += strlen($t);
if ($c > 50) break;
}
$introtext = implode ('<br />', $p);
} else {
$introtext = trim(strip_tags ($introtext, '<a><b><strong><br>'));
}
// add p tag
2. For Feature View:
templatesja_wallhtmlcom_contentfeatureddefault_item.php
The code is the same as Category view