Answer the question
In order to leave comments, you need to log in
How to extract specific information from a database field?
<?php echo $field['handler']->setItem($item)->parseTeaser($item[$field['name']]);?>
<a href="/files/download/11/e0ab03d8">Скачать</a>
Answer the question
In order to leave comments, you need to log in
Perhaps the MySQL gurus will be able to give you a solution with a query...
But here's a solution with PHP:
$text = '<a href="/files/download/11/e0ab03d8">Скачать</a>';
preg_replace("'<[\/\!]*?[^<>]*?>'si", null, $text);
echo $text; // вернет Скачать
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question