N
N
nerwind932021-04-07 15:31:56
MySQL
nerwind93, 2021-04-07 15:31:56

How to substitute copied text in js?

I saw a lot of sites with features by type when you copy the text (manually) along with the text, another info is copied by the type of source and advertising nonsense, the question is: how to do the same in js? (if at all possible) Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Tokarchuk, 2018-05-24
@Kewa2008

Now there are a huge number of CMS, even more self-written options. And if you consider that everyone does in their own way, then yes. Somewhere there is such an option =)
In general, everything depends on the specific case. What exactly do you need to filter, what is the structure of the site and database.
There is no universal solution

I
Immortal_pony, 2018-05-24
@Immortal_pony

If the search is by the description field , then the query looks more like this:

SELECT * FROM product WHERE MATCH description AGAINST ('что-то') > 0

V
valgerofficial, 2021-04-07
@nerwind93

Hold

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question