Eliminating CR in a text output

I'm sorry this surely has been treated before, but I didn't find anything
in the archives (missing the good keyword, probably):

I want to transform some XML into some text (Javascript, namely). What I
want is to use some of the XML->HTML templates I already wrote. However, it
seems the CR found in my XML source arrive in my final text (what
javascript does not like at all).

For example, my xml is like this :
<h4 function="high"><ht>Pr&eacute;sentation -
Fonctions</ht>

And what I want to get is :
"Présentation - Fonctions"
(with no CR in the middle of my title)

I tried a <xsl:strip-space elements="ht"/> but it only works with a CR
before the </ht>.