$nb_char = $nb_char * ($nb_line - $nb_max + 1);
}
$summary .= util_make_links((($truncate == true && strlen($arr[$l]) > $nb_char)?
- preg_replace('/[^\s]*$/', ' <b>...</b>', substr($arr[$l], 0, $nb_char), 1) :
+ preg_replace('/[^\s]*$/', ' <strong>...</strong>', substr($arr[$l], 0, $nb_char), 1) :
$arr[$l]));
}
$AS_flag .= 'S';
}
if ($AS_flag) {
- $AS_flag = '[<b>'.$AS_flag.'</b>]';
+ $AS_flag = '['.html_e('strong', array(), $AS_flag).']';
}
return $AS_flag;
}
$AS_flag .= 'S';
}
if ($AS_flag != '') {
- $AS_flag = '[<b>'.$AS_flag.'</b>]';
+ $AS_flag = '['.html_e('strong', array(), $AS_flag).']';
}
return $AS_flag;
}
function my_item_count($total, $new) {
- return '['.$total.($new ? ", <b>".sprintf(ngettext('%d new item', '%d new items', $new), $new)."</b>]" : ']');
+ return '['.$total.($new ? ", ".html_e('strong', array(), sprintf(ngettext('%d new item', '%d new items', $new), $new))."]" : ']');
}
if ($remaining >= 0) {
$value = gmdate("G\h i", $remaining);
} else {
- $value = '<b>-' . gmdate("G\h i", -$remaining) . "</b>";
+ $value = html_e('strong', array(), '-' . gmdate("G\h i", -$remaining));
}
if (!$timer_is_running) {
if ($remaining >= 0) {
$value = gmdate("G\h i", $remaining);
} else {
- $value = '<b>-' . gmdate("G\h i", -$remaining) . "</b>";
+ $value = html_e('strong', array(), '-' . gmdate("G\h i", -$remaining));
}
if ($artifact->getStatusID() == 2) {
if ($remaining >= 0) {
}
}
- $html_hdr .= '['.count($surveys).($count_new ? ", <b>".sprintf(_('%d new'), $count_new)."</b>]" : ']').'</td></tr>';
+ $html_hdr .= '['.count($surveys).($count_new ? ", ".html_e('strong', array(), sprintf(_('%d new'), $count_new))."]" : ']').'</td></tr>';
$html_my_surveys .= $html_hdr.$html;
}
$html_my_surveys .= $HTML->listTableBottom();
<input type="text" required="required" size="15" maxlength="32" name="label_name" value="<?php echo _('potm') ; ?>"/> <br/>
<?php echo _('Displayed text (or HTML) for the label')._(': ') ; ?><br/>
<textarea tabindex='1' accesskey="," name="label_text" rows='5'
- cols='80'><p><b><?php echo _('Project of the month!') ; ?></b></p>
+ cols='80'><p><?php echo html_e('strong', array(), _('Project of the month!')) ; ?></p>
</textarea><br/>
<input type="submit" value="<?php echo _('Add label') ?>" />
</p>
$document = document_get_object($row['docid'], $row['group_id']);
$currentDocGroup = $row['project_name'];
if ($lastGroupID != $document->Group->getID()) {
- $cells[] = array(html_image('ic/home16b.png', 10, 12).'<b>'.util_make_link('/docman/?group_id='.$document->Group->getID(),$currentDocGroup).'</b>', 'colspan' => 4);
+ $cells[] = array(html_image('ic/home16b.png', 10, 12).html_e('strong', array(), util_make_link('/docman/?group_id='.$document->Group->getID(),$currentDocGroup)), 'colspan' => 4);
$lastGroupID = $document->Group->getID();
$rowColor = 0;
$return .= $HTML->multiTableRow(array(), $cells);
* @return string text with keywords highlighted
*/
function highlightTargetWords($text) {
- return preg_replace('/<b>/','<b class="selected">', $text);
+ return preg_replace('/<strong>/','<strong class="selected">', $text);
}
/**
$project_name = $result['unix_group_name'];
$project_id = $result['group_id'];
- $project_name = str_replace('<b>', '', $project_name);
- $project_name = str_replace('</b>', '', $project_name);
+ $project_name = str_replace('<strong>', '', $project_name);
+ $project_name = str_replace('</strong>', '', $project_name);
if (forge_check_perm('project_read', $project_id)) {
header('Location: '.util_make_url_g($project_name,$project_id));