<?php

$s = '<a href="http адрес динамический" target="_blank">динамическое содержимое</a>';
echo strip_tags($s);