Apostrophe in xf:input with incremental attribute
Brought to you by:
alain-couthures
The Wikipedia example :
http://www.agencexml.com/jsoncallback/wikipediasearch.xml
doesn't work if the searched string contains an apostrophe.
For example, the Wikipedia in english contains an article "L'Arc de Triomphe", but if you type this string in the input field, you get a JavaScript error because the apostrophe is not escaped.
The included patch corrects this bug, by adding some calls to a new "Core.addslashes" function inspired by PHP's function.
It was tested in data-island branch revision 445.
Patch to correct the apostrophe bug in xf:input