I have comment box. If i type in something like this

```
aa @Martins <aabb>

```

In database I save it like:

```
aa <span class="highlight" contenteditable="false">@Martins Vilskersts</span>&nbsp;&lt;aabb&gt;<span></span>

```

And for now i use this, to show it:

```
$str = strip_tags(htmlspecialchars_decode(html_entity_decode($my_string_from_database)), '<br><br/>');

//here is some replace for links functionality
$replace = '<a href="javascript:;" class="..." id="..." ></a>';
$str = str_replace($link->tag, $replace, $str);

echo $str;

```

And i get result like this:

```
aa @Martins

```

But i want to see it like this:

```
aa @Martins <aabb> -[with @ functionality, but with some random <aaa><bbb> tags as plain text. Any idea?]

```