June 17, 2013

how to remove script tag such {audio}{/audio} or {youtube}{/youtube}

User1999818’s Question:

in my old data it store joomla tags such “{audio}{/audio}” or “{youtube}{/youtube}”, and I want to strip these tag.

how I do in php code? if I want leave it content or remove it content.

Please help me, thank you.

Compared to regular expression replace function str_replace() is a lot faster.

$text = str_replace("{audio}", "", $text);
$text = str_replace("{/audio}", "", $text);

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!