The Code is as follows {code ...} what is stored in the database now is this form. I need to output it to the HTML code as it is, but the direct output will be parsed, but I do not need to do so. Do not parse a word as it is. change !!
The Code is as follows:
"<Font color = \" # FF8132 \ "> caution 2: You will switch to sleep mode and cannot use </font> <font color = \" # FF8132 \ "> call, SMS and Network </font> <font color = \ "# FF8132 \"> functions. Are you sure you want to change? </Font>"
Currently, this format is stored in the database.
I need to output it to HTML code as it is, but the direct output will be parsed
But I don't need this.
Output as is
Do not parse a word !!
Reply content:
The Code is as follows:
"<Font color = \" # FF8132 \ "> caution 2: You will switch to sleep mode and cannot use </font> <font color = \" # FF8132 \ "> call, SMS and Network </font> <font color = \ "# FF8132 \"> functions. Are you sure you want to change? </Font>"
Currently, this format is stored in the database.
I need to output it to HTML code as it is, but the direct output will be parsed
But I don't need this.
Output as is
Do not parse a word !!
Usehtmlspecialchars
StrongEscape Character \
Htmlspecialchars
With the code tag, the code in the tag is not parsed and output as is. However, the code only applies to a single line. You must use multiple lines of code such as the subject.
Label. From http://www.imooc.com/code/144
1. Put it in textarea.
2. Second escape & Symbol
A built-in function of decodeURI
The htmlspecialchars_decode function can be used directly in php.
echo htmlspecialchars_decode($str);