Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
in Q2A Core by
I use this method to import questions:

But one problem i have: Is there a function i can use for the tags to preprocess them?

Because atm tags like "HELLO" or "hello?" or "hello!" are added to the database and displayed on the page corectly, but when i click on the urls i get 404.. :/

Another question: Why are not all possible tags allowed?

1 Answer

0 votes
Best answer
Tags are based on Q2A's definition of a word, which includes the removal of punctuation and conversion to lower case.

Try using this to set the tags column in the database:


...where $intags is your original set of tags (separated by any word separator).
I noticed that apostrophes are converted to spaces (well, dashes) in the final URL. I would suggest that instead you just remove them (I've done this in my Q2A).
So you'd have:
Rather than:
thx, works :)