Article From:https://segmentfault.com/q/1010000011700139
Question:

As you can see, the input $seems to have been filtered out to prevent SQL injection or something like that?

Answer 0:

You can use translation.

\\$1

Want a go

\$1

I suspect that it may be the cause of latex:

$$x_3$$

$$x_3$$

Answer 1:

It’s okay to write $1 $2 normally, but the syntax of the Segmantfault does some math editing optimization, collectively: in the segmantfault editor syntaxformulaPart, so your math turns those into numbers, and there’s no SQL injection. This is the content of the article, it’s the repository, not the SQL query.

The recommended practice is to use “to wrap special symbols for your writing.”$1$2

`$1$2`

Answer 2:

qwe $1$2

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *