I just want to remove all things inside tags and the tags so
<b>My</b> text is <u><b>Very</b></u> strange.
turns into: "My text is Very strange".
$alt = preg_replace('/<.+[^>]>/gi', "", $alt);
The code is messing up, removing everything.
Why not use: $alt = "<b>My</b> text is <u><b>Very</b></u> strange."; strip_tags($alt);
It strips all html tags out.
wow how did i not know that