Home  >  Article  >  Backend Development  >  The solution for the thinkphp3.2.3 version template engine to filter out backslashes, thinkphp3.2.3 slash_PHP tutorial

The solution for the thinkphp3.2.3 version template engine to filter out backslashes, thinkphp3.2.3 slash_PHP tutorial

WBOY
WBOYOriginal
2016-07-12 08:55:391107browse

The solution for thinkphp3.2.3 version template engine to filter out backslashes, thinkphp3.2.3 slashes

This problem made me struggle for several hours. I thought there was a problem with JS, so I kept checking and checking. Finally, I found that thinkphp3.2.3 filtered out the backslashes of JS regular expressions, causing the JS regular expressions to become invalid. For example, d{4} was parsed into d{4}

The solution is to use two backslashes \, for example, d{4} can be written as \d{4}

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1116240.htmlTechArticleThe solution to the problem that thinkphp3.2.3 version template engine will filter out backslashes, thinkphp3.2.3 slash problem I struggled with it for several hours. At first I thought it was a problem with JS, so I kept checking...
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