View Single Post
  #1 (permalink)  
Old February 13th, 2007, 05:04 PM
smiter smiter is offline
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default strip html tags with xslt

I am busy with a website where customers can edit there profile. They can also use some kind of editor which produces html tags that will be wrapped around the text.

The xml looks something like this:

<Profile>
<p>This is a <b>profile</b> text blablalbla</p><br/>
</Profile>

Now I am creating some kind of master page with links to detail pages. On the detailpages the html has to be output as html code (using disable output-escaping).

On the masterpage I just want this as output:
"This is a profile text blablalbla"

So all the html tags must be ignored or stripped out.


Is this possible with xslt?

Thanks in advance,

M. Smit

Reply With Quote