回答編集履歴
2
fontで色を付けるのは非推奨なので、spanに変更
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
$str = $record->getField('textdata');
|
4
4
|
|
5
|
-
$new_kai = "<
|
5
|
+
$new_kai = "<span style='color:red'>◯</span>";
|
6
6
|
|
7
7
|
$new_str = mb_ereg_replace('◯', $new_kai, $str);
|
8
8
|
|
1
間違いを修正
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
$str = $record->getField('textdata');
|
4
4
|
|
5
|
-
$new_kai = "<font color = 'red'>◯</font>
|
5
|
+
$new_kai = "<font color = 'red'>◯</font>";
|
6
6
|
|
7
7
|
$new_str = mb_ereg_replace('◯', $new_kai, $str);
|
8
8
|
|