Convert an xml element whose content is inside CDATA

前端 未结 3 1384
轮回少年
轮回少年 2020-12-01 21:56

I have a xml fragment like below


    welcome to my page
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-01 22:46

    What about running two transforms.

    Pass 1.)

    
      
      
    
      
        
      
    
        
            
                
            
            
        
    
    
    

    Will produce:

    
     
        
    welcome to my page
    this is paraph

    Pass 2.)

    
      
      
    
      
        
      
    
        
            
                
            
        
    
        
            

    Produces:

    
    
    

    welcome to my page

    this is paraph

提交回复
热议问题