teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

2

間違え

2019/02/21 08:30

投稿

退会済みユーザー
answer CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > [参考元](https://qiita.com/deco/items/8c87cb002ff7769cdbf2)
4
4
  > ```Java
5
- > public static String >removeTag(String inputedText) {
5
+ > public static String removeTag(String inputedText) {
6
6
  > String text = inputedText;
7
7
  > if (text != null) {
8
8
  > text = text.replaceAll("<", "&lt;");

1

編集

2019/02/21 08:30

投稿

退会済みユーザー
answer CHANGED
@@ -1,12 +1,13 @@
1
1
  具体例やコードがないのでどうとも言えないので推測での回答です。
2
2
 
3
3
  > [参考元](https://qiita.com/deco/items/8c87cb002ff7769cdbf2)
4
- >```Java
4
+ > ```Java
5
- >public static String >removeTag(String inputedText) {
5
+ > public static String >removeTag(String inputedText) {
6
6
  > String text = inputedText;
7
7
  > if (text != null) {
8
8
  > text = text.replaceAll("<", "&lt;");
9
9
  > text = text.replaceAll(">", "&gt;");
10
10
  > }
11
11
  > return text;
12
- >}
12
+ > }
13
+ > ```