I have this:
$data = '<tag>content</tag>';
And I'd like to know if it's possible to modify the content inside the tags as shown, and how.
For example, if the user inputs "car", then the variable should be:
$data = '<tag>car</tag>';
This is for the purpose of inserting user input from an HTML form into the variable. The variable itself is supposed to contain an XML structure.