Home >Web Front-end >HTML Tutorial >html single quotes, double quotes escape_html/css_WEB-ITnose

html single quotes, double quotes escape_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:51:221102browse

Today, after I edited an HTML template using the TRS backend, saved it and published it, an error occurred when previewing the modified page. But I only added the following red code

content

< /p>

So I removed the above code and it was normal again. The problem appeared in the code I added, but there was no error in the code, so I looked at other codes in the template and found that I found the codes for ' and "

After searching online, I found that ' is the escape character for single quotes, and "" is the escape character for double quotes. I followed suit and changed the above code to

content< /span>

Save and publish preview OK!
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn