How to remove CDATA tag in php?

You can definitely remove the CDATA tag from input xml by using the str_replace function in PHP to remove the desired content from your xml.

1. Code:



    
        
            
            
                
                   Soltuts Support 
                
            
            ]]>
        
    
';
echo escapeSpecialChars(removeCDataTag($str));
?> 

2. Example:

Input:



    
        
            
            
                
                   Soltuts Support 
                
            
            ]]>
        
    

Output:



	
		 
			
				 Soltuts Support