Ver original<?php $foo = 'bla bla <b>Hello World!</b>';$foo_encoded = urlencode(htmlentities($foo));?><a href="<?= 'http://localhost/pruebas/test-'.$foo_encoded; ?>">Enlace</a>