How to avoid <sign in php regex

Do I have to add characters before or after the character <(which is in the string, I'm trying to extract something from it - this is an html page) when doing a preliminary match?

+3
source share
3 answers

you don’t need to run <unless you save the data created by the user, and then you need to be concerned about security and XSS.

+1
source

you do not need to avoid it, it is not a special character in regular expressions.

+6
source

"<" " > " (GNU Basic Extended regular expressions). . , .

+2

Source: https://habr.com/ru/post/1718918/


All Articles