I have HTML code as String variable in Coldfusion.
For example:
<cfset str = "<span class='xyz'> sample text within span </span>" >
Now I want to repalce the word span from text “sample text within span” but not the tag name.
Can someone help me?
Thanks in advance.
I habe changed my code like this and it seems to work, but how efficent it is I don’t know
Can someone please check it?
Thanks