How can I add a span tag inside my menu link?
You can try this code:

{% set tmp = '&lt;span&gt;'~item.title~'&lt;/span&gt;' %}
{% set link_text %}{{ tmp|raw }}{% endset %}
{{ link(link_text, item.url) }}