I’m trying to use tags of the single post, as meta keywords.
I tried using this:
<meta name="keywords" content="<?php the_tags('',',','');?>test<?php }?>"/>
It works, but the output is:
<meta name="keywords" content="<a href="http://127.0.0.1/1/tag/aquaman/" rel="tag">aquaman</a>,<a href="http://127.0.0.1/1/tag/batman/" rel="tag">batman</a>,<a href="http://127.0.0.1/1/tag/wonder-woman/" rel="tag">wonder woman</a>"/>
Is it possible to remove the tags link/URL? And just the text/tag itself will appear?