There is a code like this:
```
$content = 'link';
$content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');
$dom = new DOMDocument;
$dom->loadHTML('
' . $content . '
', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
$root = $dom->documentElement;
$links = $dom->getElementsByTagName('a');
foreach ($links as $link) {
$href = $link->getAttribute('href');
$href = urldecode($href);
$link->setAttribute('href', $href);
$link->setAttribute('data-href', $href);
$test = $dom->saveHTML($link);
echo $test;
break;
}
```
As a result, the following value is output:
```
link
```
Is it possible to make the href the same as data-href? How do I do this?