skeeks/yii2-link-activation Conversion of inactive links in the text into active clickable links

Conversion of inactive links in the text

  1. Installation
  2. Client replace (on js)
  3. Backend replace
  4. Screenshot
  5. Video
  6. Links

SkeekS blog

A small extension to convert active links in the text to active (clickable). It can convert html or text, it is possible to convert on the client (js) as well as on the backend (php).

Небольшое расширение для преобразования неактивных ссылок в тексте в активные (кликабельные). Может преобразовывать html или текст, возможно преобразовывать на клиенте (js) а так же на бэкенде (php).

Latest Stable Version Total Downloads


$ composer require skeeks/yii2-link-activation "^0.0.3"

Or add this to your composer.json file:

    "require": {
        "skeeks/yii2-link-activation": "^0.0.3"

Client replace (on js)

new sx.classes.LinkActivation(".description");
<div class="description">
Какой то текст со ссылками,
Все ссылки будут автоматически определены в этом тексте и станут кликабельными

Backend replace

    $handler = new \skeeks\yii2\linkActivation\TextHandler();
    $handler->short_link_max_length = 45;
    echo $handler->replace($yourText);
<?= (new \skeeks\yii2\linkActivation\TextHandler())->replace($yourText); ?>


SkeekS blog




SkeekS CMS (Yii2) — quickly, easily and effectively! |

1 0
1 follower
Yii Version: 2.0
License: BSD-3-Clause
Category: Web Service
Developed by: skeeks
Created on: Apr 7, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions