I provide the user with a way to enter a delimeter character of choice including escaped characters in a form text box. It would be awkward for the user to specify the delimeter via the HTML equiv. escape character (i.e. &xxx;) so I'm allowing for the usual /t, /n, /r type of delimeters. Unfortunately, the text is returned as a literal string (same as '/t', etc.). Although functions such as html_entity_decode() will convert HTML character entities within a literal string (such as '&', '>', etc. - I don't know of an equivalent function that will handle '/t', '/r', etc. I could write a function - but I thought someone would have a more elegant answer. Any ideas?
Philibuster
|