D
D
Danil2015-07-16 13:56:29
MySQL
Danil, 2015-07-16 13:56:29

How to edit mysql table data by mask?

There is a mysql table in it there is a field in which text and html code are mixed. What is the best way to remove all html leaving only the text? Records about 10k.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Fedoseev, 2015-07-16
@Veneomin

a table - it usually consists of fields ... It is not clear on your question - everything is in one field or in different ...

O
Optimus, 2015-07-16
Pyan @marrk2

Let's say this:
$text = preg_replace("/<(.*?)>/ism", "", $text);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question