Home > Backend Development > PHP Tutorial > 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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-12 08:55:39
Original
1169 people have browsed it

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...
Related labels:
source:php.cn
Statement of this Website
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
Latest Issues
How to split mysql in thinkphp3.2.3
From 1970-01-01 08:00:00
0
0
0
jquery - thinkphp3.2.3 and Baidu map
From 1970-01-01 08:00:00
0
0
0
thinkphp3.2.3 scheduled task problem
From 1970-01-01 08:00:00
0
0
0
How to use the search function in thinkPHP3.2.3
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template