Internal link snippet

All,

I am trying to wrap some markup around the <a> tag in an inline link template in xsl (5.7). I can preview the template on it’s own and the markup is in the source but as soon as i add it as an inline link in the ephox field the markup is stripped out. Does anyone know how to stop this from happening? I can add markup within the <a> tag but no outside of it:

p
span
a href=“psx-link”>
psx-rk_sharedstandard/sh_linktitle
/a
/span
/p

Thanks in advance