I want an script which will output just the tags text in the publish tags. Avoid links, ul's along with other stuff, simply text in order to add this text like a class from the publish. Can anybody help? Thanks!

Founded the solution here: Wordpress get_the_tag_list($ID) help

<?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
echo $tag->name . ''; 
}
}
?>