Possible reasons 1 Because he uses htmlspecialchars_encode($string) when storing it 2 So when he displays it, he uses htmlspecialchars_decode($string); 3 htmlspecialchars_decode will convert \ to
Verification You can click Edit, and you will find that it displays the content you originally entered, which means there is a display problem. This method is commonly used in PHP and can cause this situation. Because the content of the multi-text edit box does not use htmlspecialchars_decode, the original text is displayed
This is not Markdown’s syntax (segmentfault uses the compiler’s syntax by default)
You can use one
来转义
Result display:
UUID.randomUUID().toString().replaceAll("\-", "")
The code is surrounded by three [`].
Translation symbols, which are encountered in many languages. For special characters, translate them by adding "".
Possible reasons
1 Because he uses htmlspecialchars_encode($string) when storing it
2 So when he displays it, he uses htmlspecialchars_decode($string);
3 htmlspecialchars_decode will convert \ to
Verification
You can click Edit, and you will find that it displays the content you originally entered, which means there is a display problem. This method is commonly used in PHP and can cause this situation.
Because the content of the multi-text edit box does not use htmlspecialchars_decode, the original text is displayed