Greetings, Programmers :-)
Filenames with apostrophes (single quotes) in them are giving me a problem.
I maintain a web site which includes news items of interest. The news items are in the form of html pages whose names are also the headlines.
The problem is that if these page names include any single quotes, they fail to appear in the generated index.
I am therefore forced to remove any apostrophes before running my indexing app.
Can you suggest a solution that allows the inclusion of apostrophes without losing the news item?
I am including the source code as a reply.
You might possibly find it useful yourself once this anomaly is fixed, in which case, you are welcome to use it :-)
Thank you for you time and trouble (-_-)
Julian Bury (joolian.net)
Filenames with apostrophes (single quotes) in them are giving me a problem.
I maintain a web site which includes news items of interest. The news items are in the form of html pages whose names are also the headlines.
The problem is that if these page names include any single quotes, they fail to appear in the generated index.
I am therefore forced to remove any apostrophes before running my indexing app.
Can you suggest a solution that allows the inclusion of apostrophes without losing the news item?
I am including the source code as a reply.
You might possibly find it useful yourself once this anomaly is fixed, in which case, you are welcome to use it :-)
Thank you for you time and trouble (-_-)
Julian Bury (joolian.net)