示例#1
0
 public static function getNoResultStepBr($stepStr)
 {
     $handledStr = '';
     $stepArr = preg_split('/<br\\s*\\/>/i', $stepStr);
     foreach ($stepArr as $step) {
         if (preg_match('/^(\\r\\n)*\\s*\\d+\\..*?$/', strip_tags($step))) {
             $handledStr .= '<table bugfree_table_already_set><tbody><tr valign="top"><td style="width:370px;">' . $step . '</td>';
             $handledStr .= '<td>' . self::getSelectStr() . '</td>';
             $handledStr .= '</tr></tbody></table>';
         } else {
             $handledStr .= $step . '<br />';
         }
     }
     if (CommonService::endsWith($handledStr, '<br />')) {
         $handledStr = substr($handledStr, 0, strlen($handledStr) - strlen('<br />'));
     }
     return $handledStr;
 }