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

WBOY
Release: 2016-07-12 08:55:39
Original
1082 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!