I am trying to handle a string, of possible input
'something <p>hi</p> <br />'
The input string could contain any, or no HTML tags. I want to handle this string without formatting it.
Essentially I am splitting it at the moment, with a delimiter of &, and I need the output array produced to still contain the input
etc....$ajaxinput = "function=submit&content=this is some page stuff <p>hi</p>";
echo 'Input : ' . $ajaxinput . '<br /><br /><br />';
$output = explode("&", $ajaxinput);
echo 'Split : ' . $output[0] . '<br /><br />';
echo 'Split : ' . $output[1];
Output is:
Input : function=submit&content=this is some page stuff
hi
Split : function=submit
Split : content=this is some page stuff
hi
I want:
Input : function=submit&content=this is some page stuff <p>hi</p>
Split : function=submit
Split : content=this is some page stuff <p>hi</p>